Skip to content

Commit 9c53b15

Browse files
author
Michael Wright
committed
Fix unused_mut warning
1 parent 4010788 commit 9c53b15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/consts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ impl<'c, 'cc> ConstEvalLateContext<'c, 'cc> {
241241
match *o {
242242
Bool(b) => Some(Bool(!b)),
243243
Int(value) => {
244-
let mut value = !value;
244+
let value = !value;
245245
match ty.sty {
246246
ty::TyInt(ity) => Some(Int(unsext(self.tcx, value as i128, ity))),
247247
ty::TyUint(ity) => Some(Int(clip(self.tcx, value, ity))),

0 commit comments

Comments
 (0)