2
0
Fork 0
mirror of https://github.com/rust-lang/rust-clippy synced 2024-12-27 21:43:30 +00:00
rust-clippy/tests/ui/seek_from_current.stderr

12 lines
423 B
Text
Raw Normal View History

error: using `SeekFrom::Current` to start from current position
2024-02-17 12:16:29 +00:00
--> tests/ui/seek_from_current.rs:19:5
|
LL | f.seek(SeekFrom::Current(0))?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `f.stream_position()`
|
= note: `-D clippy::seek-from-current` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::seek_from_current)]`
error: aborting due to 1 previous error