We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f63b62 commit de7d0eaCopy full SHA for de7d0ea
clippy_lints/src/ptr.rs
@@ -217,7 +217,7 @@ fn check_invalid_ptr_usage<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) {
217
let fun_def_path = cx.get_def_path(fun_def_id).into_iter().map(Symbol::to_ident_string).collect::<Vec<_>>();
218
if let Some(&(_, arg_indices)) = INVALID_NULL_PTR_USAGE_TABLE
219
.iter()
220
- .find(|&&(fn_path, _)| fn_path == &fun_def_path);
+ .find(|&&(fn_path, _)| fn_path == fun_def_path);
221
then {
222
for &arg_idx in arg_indices {
223
if let Some(arg) = args.get(arg_idx).filter(|arg| is_null_path(cx, arg)) {
0 commit comments