summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/seek_to_start_instead_of_rewind.stderr
blob: 6cce025359fe2918bce42ea6bdbef601d8c74948 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
error: used `seek` to go to the start of the stream
  --> $DIR/seek_to_start_instead_of_rewind.rs:53:7
   |
LL |     t.seek(SeekFrom::Start(0));
   |       ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `rewind()`
   |
   = note: `-D clippy::seek-to-start-instead-of-rewind` implied by `-D warnings`

error: used `seek` to go to the start of the stream
  --> $DIR/seek_to_start_instead_of_rewind.rs:58:7
   |
LL |     t.seek(SeekFrom::Start(0));
   |       ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `rewind()`

error: used `seek` to go to the start of the stream
  --> $DIR/seek_to_start_instead_of_rewind.rs:128:7
   |
LL |     f.seek(SeekFrom::Start(0));
   |       ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `rewind()`

error: aborting due to 3 previous errors