mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
fix: float display impl
This commit is contained in:
parent
a5d7ab54f9
commit
25f3e7a33c
2 changed files with 3 additions and 3 deletions
|
@ -52,7 +52,7 @@ impl FloatTypeWrapper {
|
||||||
|
|
||||||
impl std::fmt::Display for FloatTypeWrapper {
|
impl std::fmt::Display for FloatTypeWrapper {
|
||||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||||
write!(f, "{}", f64::from_bits(self.0))
|
write!(f, "{:?}", f64::from_bits(self.0))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3634,7 +3634,7 @@ const FOO$0: f32 = 1f32;
|
||||||
```
|
```
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
const FOO: f32 = 1
|
const FOO: f32 = 1.0
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
@ -3656,7 +3656,7 @@ const FOO$0: f64 = 1.0f64;
|
||||||
```
|
```
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
const FOO: f64 = 1
|
const FOO: f64 = 1.0
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue