mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 14:51:48 +00:00
unnecessary_lazy_evaluations
This commit is contained in:
parent
f15ee8a380
commit
c4302eaa56
4 changed files with 3 additions and 3 deletions
|
@ -297,7 +297,7 @@ fn as_module_def_if_namespace_matches(
|
|||
AssocItem::TypeAlias(it) => (ModuleDef::TypeAlias(it), Namespace::Types),
|
||||
};
|
||||
|
||||
(ns.unwrap_or(expected_ns) == expected_ns).then(|| DocLinkDef::ModuleDef(def))
|
||||
(ns.unwrap_or(expected_ns) == expected_ns).then_some(DocLinkDef::ModuleDef(def))
|
||||
}
|
||||
|
||||
fn modpath_from_str(link: &str) -> Option<ModPath> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue