File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ use super::ChunkedFileState;
7
7
pub struct ChunkedArtifactRequest < ' a > {
8
8
pub checksum : Digest ,
9
9
pub chunks : & ' a [ Digest ] ,
10
- #[ serde( skip_serializing_if = "Vec ::is_empty" ) ]
11
- pub projects : Vec < String > ,
10
+ #[ serde( skip_serializing_if = "<[_]> ::is_empty" ) ]
11
+ pub projects : & ' a [ String ] ,
12
12
#[ serde( skip_serializing_if = "version_is_empty" ) ]
13
13
pub version : Option < & ' a str > ,
14
14
#[ serde( skip_serializing_if = "Option::is_none" ) ]
Original file line number Diff line number Diff line change @@ -996,7 +996,7 @@ impl<'a> AuthenticatedApi<'a> {
996
996
. with_json_body ( & ChunkedArtifactRequest {
997
997
checksum,
998
998
chunks,
999
- projects : Vec :: new ( ) ,
999
+ projects : & [ ] ,
1000
1000
version : None ,
1001
1001
dist : None ,
1002
1002
} ) ?
@@ -1015,7 +1015,7 @@ impl<'a> AuthenticatedApi<'a> {
1015
1015
pub fn assemble_artifact_bundle (
1016
1016
& self ,
1017
1017
org : & str ,
1018
- projects : Vec < String > ,
1018
+ projects : & [ String ] ,
1019
1019
checksum : Digest ,
1020
1020
chunks : & [ Digest ] ,
1021
1021
version : Option < & str > ,
Original file line number Diff line number Diff line change @@ -454,7 +454,7 @@ fn poll_assemble(
454
454
let response = if use_artifact_bundle {
455
455
authenticated_api. assemble_artifact_bundle (
456
456
context. org ,
457
- vec ! [ context. project. unwrap( ) . to_string( ) ] ,
457
+ & [ context. project . unwrap ( ) . to_string ( ) ] ,
458
458
checksum,
459
459
chunks,
460
460
context. release ,
@@ -544,7 +544,7 @@ fn upload_files_chunked(
544
544
let api = Api :: current ( ) ;
545
545
let response = api. authenticated ( ) ?. assemble_artifact_bundle (
546
546
context. org ,
547
- vec ! [ context. project. unwrap( ) . to_string( ) ] ,
547
+ & [ context. project . unwrap ( ) . to_string ( ) ] ,
548
548
checksum,
549
549
& checksums,
550
550
context. release ,
You can’t perform that action at this time.
0 commit comments