mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
internal: Replace Display impl for Name
This commit is contained in:
parent
2f840c2236
commit
c7ef6c25b7
108 changed files with 1045 additions and 656 deletions
|
@ -35,7 +35,7 @@ pub(super) fn hints(
|
|||
let ty = imp.self_ty(sema.db);
|
||||
let trait_ = imp.trait_(sema.db);
|
||||
let hint_text = match trait_ {
|
||||
Some(tr) => format!("impl {} for {}", tr.name(sema.db), ty.display_truncated(sema.db, config.max_length)),
|
||||
Some(tr) => format!("impl {} for {}", tr.name(sema.db).display(sema.db), ty.display_truncated(sema.db, config.max_length)),
|
||||
None => format!("impl {}", ty.display_truncated(sema.db, config.max_length)),
|
||||
};
|
||||
(hint_text, None)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue