mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-12 06:12:46 +00:00
23 lines
873 B
Text
23 lines
873 B
Text
error: used `seek` to go to the start of the stream
|
|
--> tests/ui/seek_to_start_instead_of_rewind.rs:52:7
|
|
|
|
|
LL | t.seek(SeekFrom::Start(0));
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `rewind()`
|
|
|
|
|
= note: `-D clippy::seek-to-start-instead-of-rewind` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::seek_to_start_instead_of_rewind)]`
|
|
|
|
error: used `seek` to go to the start of the stream
|
|
--> tests/ui/seek_to_start_instead_of_rewind.rs:57:7
|
|
|
|
|
LL | t.seek(SeekFrom::Start(0));
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `rewind()`
|
|
|
|
error: used `seek` to go to the start of the stream
|
|
--> tests/ui/seek_to_start_instead_of_rewind.rs:136:7
|
|
|
|
|
LL | f.seek(SeekFrom::Start(0));
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `rewind()`
|
|
|
|
error: aborting due to 3 previous errors
|
|
|