address clippy warnings from 0.1.54 (#1118)

This commit is contained in:
bmc-msft
2021-08-02 12:05:27 -04:00
committed by GitHub
parent cfe0ec8d5f
commit 0b40abd0ef
3 changed files with 3 additions and 3 deletions

View File

@ -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")?;
}

View File

@ -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

View File

@ -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?;
}
}