mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Deduplicate some code
This commit is contained in:
parent
bb0de88f24
commit
2ebf0c87c2
22 changed files with 299 additions and 234 deletions
|
@ -112,7 +112,7 @@ impl<'a> RenderContext<'a> {
|
|||
};
|
||||
is_assoc_deprecated
|
||||
|| assoc
|
||||
.containing_trait_or_trait_impl(db)
|
||||
.container_or_implemented_trait(db)
|
||||
.map(|trait_| self.is_deprecated(trait_))
|
||||
.unwrap_or(false)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue