File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -215,7 +215,9 @@ fn check_invalid_ptr_usage<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) {
215
215
if let ExprKind :: Path ( ref qpath) = fun. kind;
216
216
if let Some ( fun_def_id) = cx. qpath_res( qpath, fun. hir_id) . opt_def_id( ) ;
217
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 . iter( ) . find( |&&( fn_path, _) | fn_path == & fun_def_path) ;
218
+ if let Some ( & ( _, arg_indices) ) = INVALID_NULL_PTR_USAGE_TABLE
219
+ . iter( )
220
+ . find( |&&( fn_path, _) | fn_path == & fun_def_path) ;
219
221
then {
220
222
for & arg_idx in arg_indices {
221
223
if let Some ( arg) = args. get( arg_idx) . filter( |arg| is_null_path( cx, arg) ) {
You can’t perform that action at this time.
0 commit comments