summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/verbose_file_reads.stderr
blob: 44266c7c01f3908ac713669ac4a75a6a868be94b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
error: use of `File::read_to_end`
  --> $DIR/verbose_file_reads.rs:23:5
   |
LL |     f.read_to_end(&mut buffer)?;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider using `fs::read` instead
   = note: `-D clippy::verbose-file-reads` implied by `-D warnings`

error: use of `File::read_to_string`
  --> $DIR/verbose_file_reads.rs:26:5
   |
LL |     f.read_to_string(&mut string_buffer)?;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider using `fs::read_to_string` instead

error: aborting due to 2 previous errors