File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -240,7 +240,12 @@ pub fn analyze(
240
240
}
241
241
} ;
242
242
243
- if async_func && to_remove. contains ( & ( pos - correction_instance) ) {
243
+ if async_func
244
+ && pos
245
+ . checked_sub ( correction_instance)
246
+ . map ( |p| to_remove. contains ( & p) )
247
+ . unwrap_or ( false )
248
+ {
244
249
add_rust_parameter = false ;
245
250
}
246
251
let mut transfer = par. transfer ;
Original file line number Diff line number Diff line change @@ -735,7 +735,12 @@ fn analyze_function(
735
735
correction_instance = 1 ;
736
736
}
737
737
738
- if r#async && to_remove. contains ( & ( pos - correction_instance) ) {
738
+ if r#async
739
+ && pos
740
+ . checked_sub ( correction_instance)
741
+ . map ( |p| to_remove. contains ( & p) )
742
+ . unwrap_or ( false )
743
+ {
739
744
continue ;
740
745
}
741
746
assert ! (
You can’t perform that action at this time.
0 commit comments