From 0b40abd0ef4955a1bad786709d3ad3c43a6ed6c3 Mon Sep 17 00:00:00 2001 From: bmc-msft <41130664+bmc-msft@users.noreply.github.com> Date: Mon, 2 Aug 2021 12:05:27 -0400 Subject: [PATCH] address clippy warnings from 0.1.54 (#1118) --- src/agent/onefuzz-agent/src/tasks/report/generic.rs | 2 +- src/agent/onefuzz-supervisor/src/agent.rs | 2 +- src/proxy-manager/src/proxy.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/agent/onefuzz-agent/src/tasks/report/generic.rs b/src/agent/onefuzz-agent/src/tasks/report/generic.rs index cb5ffc0963..237d888777 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 7bc3de4410..ab0358ed65 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 1dda0ea926..f270cddd30 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?; } }