Re-format let-else per rustfmt update
This commit is contained in:
parent
67b0cfc761
commit
cc907f80b9
162 changed files with 1404 additions and 947 deletions
|
@ -1988,7 +1988,9 @@ pub(crate) fn get_filtered_impls_for_reference<'a>(
|
|||
) -> (Vec<&'a Impl>, Vec<&'a Impl>, Vec<&'a Impl>) {
|
||||
let def_id = it.item_id.expect_def_id();
|
||||
// If the reference primitive is somehow not defined, exit early.
|
||||
let Some(v) = shared.cache.impls.get(&def_id) else { return (Vec::new(), Vec::new(), Vec::new()) };
|
||||
let Some(v) = shared.cache.impls.get(&def_id) else {
|
||||
return (Vec::new(), Vec::new(), Vec::new());
|
||||
};
|
||||
// Since there is no "direct implementation" on the reference primitive type, we filter out
|
||||
// every implementation which isn't a trait implementation.
|
||||
let traits = v.iter().filter(|i| i.inner_impl().trait_.is_some());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue