unnecessary_lazy_evaluations

This commit is contained in:
Johann Hemmann 2024-01-22 01:19:28 +01:00
parent f15ee8a380
commit c4302eaa56
4 changed files with 3 additions and 3 deletions

View file

@ -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> {