| error: truncating to zero length |
| --> tests/ui/manual_clear.rs:21:5 |
| | |
| LL | v.truncate(0); |
| | ^^^^^^^^^^^^^ |
| | |
| = note: `-D clippy::manual-clear` implied by `-D warnings` |
| = help: to override `-D warnings` add `#[allow(clippy::manual_clear)]` |
| help: use `clear()` instead |
| | |
| LL - v.truncate(0); |
| LL + v.clear(); |
| | |
| |
| error: truncating to zero length |
| --> tests/ui/manual_clear.rs:24:5 |
| | |
| LL | d.truncate(0); |
| | ^^^^^^^^^^^^^ |
| | |
| help: use `clear()` instead |
| | |
| LL - d.truncate(0); |
| LL + d.clear(); |
| | |
| |
| error: truncating to zero length |
| --> tests/ui/manual_clear.rs:32:5 |
| | |
| LL | get_vec!(v).truncate(0); |
| | ^^^^^^^^^^^^^^^^^^^^^^^ |
| | |
| help: use `clear()` instead |
| | |
| LL - get_vec!(v).truncate(0); |
| LL + get_vec!(v).clear(); |
| | |
| |
| error: truncating to zero length |
| --> tests/ui/manual_clear.rs:45:5 |
| | |
| LL | s.truncate(0); |
| | ^^^^^^^^^^^^^ |
| | |
| help: use `clear()` instead |
| | |
| LL - s.truncate(0); |
| LL + s.clear(); |
| | |
| |
| error: truncating to zero length |
| --> tests/ui/manual_clear.rs:49:5 |
| | |
| LL | os.truncate(0); |
| | ^^^^^^^^^^^^^^ |
| | |
| help: use `clear()` instead |
| | |
| LL - os.truncate(0); |
| LL + os.clear(); |
| | |
| |
| error: aborting due to 5 previous errors |
| |