about summary refs log tree commit diff
path: root/tests/rustdoc-ui/coverage/json.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-11-20 22:09:25 +0000
committerbors <bors@rust-lang.org>2022-11-20 22:09:25 +0000
commita85c8f33ff0da5192bb44ac52cb838f638ad7c03 (patch)
tree8089b25578eb7df3d65cfad47d5451740fecab76 /tests/rustdoc-ui/coverage/json.rs
parentd445ced166b57f304b19d9e2bcd45336a96a8705 (diff)
parent1baa6cd591982471475895fc3256d5162a651628 (diff)
downloadrust-a85c8f33ff0da5192bb44ac52cb838f638ad7c03.tar.gz
rust-a85c8f33ff0da5192bb44ac52cb838f638ad7c03.zip
Auto merge of #9870 - koka831:unformat-unused-rounding, r=Jarcho
Keep original literal notation in suggestion

While I did some investigation of https://github.com/rust-lang/rust-clippy/issues/9866 (I couldn't reproduce it though) I found that `unused_rounding` formats as follows:

```rust
3.0_f64.round() // => 3.0f64
```

This PR makes them preserve as the original notation.

```rust
3.0_f64.round() // => 3.0_f64
```

changelog: Suggestion Enhancement: [`unused_rounding`]: The suggestion now preserves the original float literal notation
Diffstat (limited to 'tests/rustdoc-ui/coverage/json.rs')
0 files changed, 0 insertions, 0 deletions