mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-25 21:37:39 +00:00
internal: Adjust a few things for trait assoc item hovers
This commit is contained in:
parent
ce3216e0ae
commit
b20e467373
7 changed files with 397 additions and 324 deletions
|
|
@ -408,7 +408,7 @@ pub(super) fn definition(
|
|||
let mod_path = definition_mod_path(db, &def);
|
||||
let label = match def {
|
||||
Definition::Trait(trait_) => {
|
||||
trait_.display_limited(db, config.trait_assoc_items_size).to_string()
|
||||
trait_.display_limited(db, config.max_trait_assoc_items_count).to_string()
|
||||
}
|
||||
_ => def.label(db),
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue