mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
fix: Omit generic defaults for types in hover messages
This commit is contained in:
parent
a07e406d06
commit
ec07bb98f8
4 changed files with 17 additions and 5 deletions
|
@ -639,7 +639,7 @@ impl HirDisplay for Ty {
|
|||
if let Some(sig) = sig {
|
||||
if sig.params().is_empty() {
|
||||
write!(f, "||")?;
|
||||
} else if f.omit_verbose_types() {
|
||||
} else if f.should_truncate() {
|
||||
write!(f, "|{}|", TYPE_HINT_TRUNCATION)?;
|
||||
} else {
|
||||
write!(f, "|")?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue