mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Simplifications / cleanup from review
This commit is contained in:
parent
30647cd195
commit
96c2b9c41d
7 changed files with 31 additions and 38 deletions
|
@ -788,8 +788,7 @@ impl Trait {
|
|||
TraitItem::TypeAlias(t) => Some(*t),
|
||||
_ => None,
|
||||
})
|
||||
.filter(|t| t.name(db) == name)
|
||||
.next()
|
||||
.find(|t| t.name(db) == name)
|
||||
}
|
||||
|
||||
pub(crate) fn trait_data(self, db: &impl DefDatabase) -> Arc<TraitData> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue