summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/verbose_file_reads.stderr
blob: 550b6ab679f19c7ec09a3aa505a6e20713304c4d (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)?;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `-D clippy::verbose-file-reads` implied by `-D warnings`
   = help: consider using `fs::read` instead

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