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
|
@ -320,7 +320,7 @@ impl DefId {
|
|||
|
||||
#[inline]
|
||||
pub fn as_crate_root(self) -> Option<CrateNum> {
|
||||
self.is_crate_root().then(|| self.krate)
|
||||
self.is_crate_root().then_some(self.krate)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue