diff options
author | Florian Diebold <[email protected]> | 2019-03-16 15:50:31 +0000 |
---|---|---|
committer | Florian Diebold <[email protected]> | 2019-03-16 15:50:31 +0000 |
commit | 628b530e92c1579f3924c37290ad59ac0512d2a0 (patch) | |
tree | 88a7e3863c78703618dc0252da132693056e4d0d /crates/ra_hir/src/ty.rs | |
parent | 76572e67eabffa959c665f8450dbb12d71848aba (diff) |
Some more Ty displaying cleanup
Diffstat (limited to 'crates/ra_hir/src/ty.rs')
-rw-r--r-- | crates/ra_hir/src/ty.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/ty.rs b/crates/ra_hir/src/ty.rs index f64877f3b..884cea52a 100644 --- a/crates/ra_hir/src/ty.rs +++ b/crates/ra_hir/src/ty.rs | |||
@@ -304,8 +304,8 @@ impl HirDisplay for Ty { | |||
304 | match self { | 304 | match self { |
305 | Ty::Bool => write!(f, "bool")?, | 305 | Ty::Bool => write!(f, "bool")?, |
306 | Ty::Char => write!(f, "char")?, | 306 | Ty::Char => write!(f, "char")?, |
307 | Ty::Int(t) => write!(f, "{}", t.ty_to_string())?, | 307 | Ty::Int(t) => write!(f, "{}", t)?, |
308 | Ty::Float(t) => write!(f, "{}", t.ty_to_string())?, | 308 | Ty::Float(t) => write!(f, "{}", t)?, |
309 | Ty::Str => write!(f, "str")?, | 309 | Ty::Str => write!(f, "str")?, |
310 | Ty::Slice(t) | Ty::Array(t) => { | 310 | Ty::Slice(t) | Ty::Array(t) => { |
311 | write!(f, "[{}]", t.display(f.db))?; | 311 | write!(f, "[{}]", t.display(f.db))?; |