We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a5d7ab5 + 25f3e7a commit f65d734Copy full SHA for f65d734
crates/hir-def/src/expr.rs
@@ -52,7 +52,7 @@ impl FloatTypeWrapper {
52
53
impl std::fmt::Display for FloatTypeWrapper {
54
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
55
- write!(f, "{}", f64::from_bits(self.0))
+ write!(f, "{:?}", f64::from_bits(self.0))
56
}
57
58
crates/ide/src/hover/tests.rs
@@ -3634,7 +3634,7 @@ const FOO$0: f32 = 1f32;
3634
```
3635
3636
```rust
3637
- const FOO: f32 = 1
+ const FOO: f32 = 1.0
3638
3639
3640
---
@@ -3656,7 +3656,7 @@ const FOO$0: f64 = 1.0f64;
3656
3657
3658
3659
- const FOO: f64 = 1
+ const FOO: f64 = 1.0
3660
3661
3662
0 commit comments