mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
manual_map
This commit is contained in:
parent
60dda08266
commit
d8ad4afce8
3 changed files with 2 additions and 9 deletions
|
@ -4285,10 +4285,8 @@ impl Type {
|
|||
// arg can be either a `Ty` or `constant`
|
||||
if let Some(ty) = arg.ty(Interner) {
|
||||
Some(format_smolstr!("{}", ty.display(db)))
|
||||
} else if let Some(const_) = arg.constant(Interner) {
|
||||
Some(format_smolstr!("{}", const_.display(db)))
|
||||
} else {
|
||||
None
|
||||
arg.constant(Interner).map(|const_| format_smolstr!("{}", const_.display(db)))
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue