diff --git a/src/agent/onefuzz-agent/src/tasks/report/generic.rs b/src/agent/onefuzz-agent/src/tasks/report/generic.rs index cb5ffc096..237d88877 100644 --- a/src/agent/onefuzz-agent/src/tasks/report/generic.rs +++ b/src/agent/onefuzz-agent/src/tasks/report/generic.rs @@ -85,7 +85,7 @@ impl ReportTask { info!("processing existing crashes"); if let Some(crashes) = &self.config.crashes { self.poller - .batch_process(&mut processor, &crashes) + .batch_process(&mut processor, crashes) .await .context("batch processing failed")?; } diff --git a/src/agent/onefuzz-supervisor/src/agent.rs b/src/agent/onefuzz-supervisor/src/agent.rs index 7bc3de441..ab0358ed6 100644 --- a/src/agent/onefuzz-supervisor/src/agent.rs +++ b/src/agent/onefuzz-supervisor/src/agent.rs @@ -286,7 +286,7 @@ impl Agent { Ok(None) => {} Ok(Some(cmd)) => { info!("agent received node command: {:?}", cmd); - self.scheduler()?.execute_command(&cmd).await?; + self.scheduler()?.execute_command(cmd).await?; } Err(PollCommandError::RequestFailed(err)) => { // If we failed to request commands, this could be the service diff --git a/src/proxy-manager/src/proxy.rs b/src/proxy-manager/src/proxy.rs index 1dda0ea92..f270cddd3 100644 --- a/src/proxy-manager/src/proxy.rs +++ b/src/proxy-manager/src/proxy.rs @@ -121,7 +121,7 @@ pub async fn update(data: &ConfigData) -> Result<()> { if !path.is_file() { info!("adding service {}", file_name); tokio::fs::write(&path, content).await?; - start_service(&file_name).await?; + start_service(file_name).await?; } }