From 81d3b8e3354d890557a6a1e2177b8f95e72c3664 Mon Sep 17 00:00:00 2001 From: arcnmx Date: Sat, 27 Jul 2019 19:11:02 -0700 Subject: [PATCH] fix clippy warnings --- ofborg/src/tasks/eval/nixpkgs.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ofborg/src/tasks/eval/nixpkgs.rs b/ofborg/src/tasks/eval/nixpkgs.rs index 8bd8c8a..01762d6 100644 --- a/ofborg/src/tasks/eval/nixpkgs.rs +++ b/ofborg/src/tasks/eval/nixpkgs.rs @@ -148,7 +148,7 @@ impl<'a> NixpkgsStrategy<'a> { fn check_outpaths_after(&mut self) -> StepResult<()> { if let Some(ref mut rebuildsniff) = self.outpath_diff { - if let Err(mut err) = rebuildsniff.find_after() { + if let Err(err) = rebuildsniff.find_after() { Err(Error::FailWithGist( String::from("This PR does not cleanly list of package outputs after merging."), String::from("Output path comparison"), @@ -264,7 +264,7 @@ impl<'a> NixpkgsStrategy<'a> { }, ); - let mut status = CommitStatus::new( + let status = CommitStatus::new( self.repo.statuses(), self.job.pr.head_sha.clone(), String::from("grahamcofborg-eval-check-maintainers"), @@ -330,7 +330,7 @@ impl<'a> NixpkgsStrategy<'a> { Ok(vec![]) } } - Err(mut out) => { + Err(out) => { status.set_url(make_gist(&self.gists, "Meta Check", None, out.display())); status.set(hubcaps::statuses::State::Failure); Err(Error::Fail(String::from(