Replace some then
s with some then_some
s
This commit is contained in:
parent
8751fa1a9a
commit
5bf6a46032
24 changed files with 27 additions and 26 deletions
|
@ -414,7 +414,7 @@ impl<'tcx> Body<'tcx> {
|
|||
(self.arg_count + 1..self.local_decls.len()).filter_map(move |index| {
|
||||
let local = Local::new(index);
|
||||
let decl = &self.local_decls[local];
|
||||
(decl.is_user_variable() && decl.mutability.is_mut()).then(|| local)
|
||||
(decl.is_user_variable() && decl.mutability.is_mut()).then_some(local)
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue