formatting

This commit is contained in:
Max Heller 2023-07-28 09:23:05 -04:00
parent 047bc47ecd
commit bc2b70d678

View File

@ -429,7 +429,9 @@ impl Builder {
if !self.doc_aliases.is_empty() {
let doc_aliases = self.doc_aliases.iter().join(", ");
label = SmolStr::from(format!("{label} (alias {doc_aliases})"));
let lookup_doc_aliases = (self.doc_aliases.iter())
let lookup_doc_aliases = self
.doc_aliases
.iter()
// Don't include aliases in `lookup` that aren't valid identifiers as including
// them results in weird completion filtering behavior e.g. `Partial>` matching
// `PartialOrd` because it has an alias of ">".