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
|
@ -281,7 +281,7 @@ impl<'a, 'tcx> Annotator<'a, 'tcx> {
|
|||
self.recurse_with_stability_attrs(
|
||||
depr.map(|(d, _)| DeprecationEntry::local(d, def_id)),
|
||||
stab,
|
||||
inherit_const_stability.yes().then(|| const_stab).flatten(),
|
||||
inherit_const_stability.yes().then_some(const_stab).flatten(),
|
||||
visit_children,
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue