Skip to content

Commit

Permalink
Fix some clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
aleasims committed Feb 28, 2025
1 parent 623843d commit 9cdb5b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions src/commands/local_run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,7 @@ async fn run(run_args: &RunArgs) -> anyhow::Result<Value> {
let qemu_args = run_args
.qemu_args
.iter()
.map(|arg| arg.split(' '))
.flatten()
.flat_map(|arg| arg.split(' '))
.collect::<Vec<_>>();

let cmd = build_cmd(
Expand Down Expand Up @@ -373,7 +372,7 @@ fn create_input_context(run_input: &RunInput) -> Result<InputContext> {

Ok(InputContext {
source: format!("file://{}", source),
target: target,
target,
})
}

Expand All @@ -390,7 +389,7 @@ fn create_output_context(output: &str) -> Result<OutputContext> {
.into());
}
} else {
Path::new(GEVULOT_OUTPUT_MOUNTPOINT).join(&output)
Path::new(GEVULOT_OUTPUT_MOUNTPOINT).join(output)
};
Ok(OutputContext {
source: output
Expand Down Expand Up @@ -560,7 +559,7 @@ async fn store_outputs(
);
let local = runtime_output.join(&relative);
if let Some(parent) = local.parent() {
fs::create_dir_all(run_args.output_dir.join(&parent)).await?;
fs::create_dir_all(run_args.output_dir.join(parent)).await?;
}
fs::copy(local, run_args.output_dir.join(&relative)).await?;
}
Expand Down
2 changes: 1 addition & 1 deletion src/commands/workers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ async fn create_worker(
.creator(me)
.name(worker.metadata.name)
.description(worker.metadata.description)
.tags(worker.metadata.tags.into_iter().map(Into::into).collect())
.tags(worker.metadata.tags.into_iter().collect())
.labels(worker.metadata.labels.into_iter().map(Into::into).collect())
.cpus(worker.spec.cpus as u64)
.gpus(worker.spec.gpus as u64)
Expand Down

0 comments on commit 9cdb5b7

Please sign in to comment.