From 9c53b1560cf5fdbd899df2696b40ca548c67dd53 Mon Sep 17 00:00:00 2001 From: Michael Wright Date: Tue, 31 Jul 2018 07:45:05 +0200 Subject: [PATCH] Fix unused_mut warning --- clippy_lints/src/consts.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_lints/src/consts.rs b/clippy_lints/src/consts.rs index 84167553a54c..d116ffafeacd 100644 --- a/clippy_lints/src/consts.rs +++ b/clippy_lints/src/consts.rs @@ -241,7 +241,7 @@ impl<'c, 'cc> ConstEvalLateContext<'c, 'cc> { match *o { Bool(b) => Some(Bool(!b)), Int(value) => { - let mut value = !value; + let value = !value; match ty.sty { ty::TyInt(ity) => Some(Int(unsext(self.tcx, value as i128, ity))), ty::TyUint(ity) => Some(Int(clip(self.tcx, value, ity))),