Skip to content

Commit 189c006

Browse files
committed
1 parent 69333f7 commit 189c006

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/booleans.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ fn simplify_not(cx: &LateContext<'_, '_>, expr: &Expr) -> Option<String> {
255255
.iter()
256256
.cloned()
257257
.flat_map(|(a, b)| vec![(a, b), (b, a)])
258-
.find(|&(a, _)| a == path.ident.name.as_str() as &str)
258+
.find(|&(a, _)| a == &path.ident.name.as_str() as &str)
259259
.and_then(|(_, neg_method)| Some(format!("{}.{}()", snippet_opt(cx, args[0].span)?, neg_method)))
260260
},
261261
_ => None,

0 commit comments

Comments
 (0)