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
|
@ -62,7 +62,7 @@ pub fn inject(
|
|||
// the one with the prelude.
|
||||
let name = names[0];
|
||||
|
||||
let root = (edition == Edition2015).then(|| kw::PathRoot);
|
||||
let root = (edition == Edition2015).then_some(kw::PathRoot);
|
||||
|
||||
let import_path = root
|
||||
.iter()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue