Skip to content

Commit de7d0ea

Browse files
committed
fixup! Add invalid null pointer usage lint.
Fix clippy**2.
1 parent 1f63b62 commit de7d0ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/ptr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ fn check_invalid_ptr_usage<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) {
217217
let fun_def_path = cx.get_def_path(fun_def_id).into_iter().map(Symbol::to_ident_string).collect::<Vec<_>>();
218218
if let Some(&(_, arg_indices)) = INVALID_NULL_PTR_USAGE_TABLE
219219
.iter()
220-
.find(|&&(fn_path, _)| fn_path == &fun_def_path);
220+
.find(|&&(fn_path, _)| fn_path == fun_def_path);
221221
then {
222222
for &arg_idx in arg_indices {
223223
if let Some(arg) = args.get(arg_idx).filter(|arg| is_null_path(cx, arg)) {

0 commit comments

Comments
 (0)