Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/api/data_types/chunking/artifact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ use super::ChunkedFileState;
pub struct ChunkedArtifactRequest<'a> {
pub checksum: Digest,
pub chunks: &'a [Digest],
#[serde(skip_serializing_if = "Vec::is_empty")]
pub projects: Vec<String>,
#[serde(skip_serializing_if = "<[_]>::is_empty")]
pub projects: &'a [String],
#[serde(skip_serializing_if = "version_is_empty")]
pub version: Option<&'a str>,
#[serde(skip_serializing_if = "Option::is_none")]
Expand Down
4 changes: 2 additions & 2 deletions src/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@ impl<'a> AuthenticatedApi<'a> {
.with_json_body(&ChunkedArtifactRequest {
checksum,
chunks,
projects: Vec::new(),
projects: &[],
version: None,
dist: None,
})?
Expand All @@ -1015,7 +1015,7 @@ impl<'a> AuthenticatedApi<'a> {
pub fn assemble_artifact_bundle(
&self,
org: &str,
projects: Vec<String>,
projects: &[String],
checksum: Digest,
chunks: &[Digest],
version: Option<&str>,
Expand Down
4 changes: 2 additions & 2 deletions src/utils/file_upload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ fn poll_assemble(
let response = if use_artifact_bundle {
authenticated_api.assemble_artifact_bundle(
context.org,
vec![context.project.unwrap().to_string()],
&[context.project.unwrap().to_string()],
checksum,
chunks,
context.release,
Expand Down Expand Up @@ -544,7 +544,7 @@ fn upload_files_chunked(
let api = Api::current();
let response = api.authenticated()?.assemble_artifact_bundle(
context.org,
vec![context.project.unwrap().to_string()],
&[context.project.unwrap().to_string()],
checksum,
&checksums,
context.release,
Expand Down