mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-11 22:02:55 +00:00
c2c73189c8
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
11 lines
419 B
Text
11 lines
419 B
Text
error: using `SeekFrom::Current` to start from current position
|
|
--> $DIR/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
|
|
|