about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/unbuffered_bytes.stderr
blob: 7505eb9e363a5d9c6171df123052be5fec5add5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
error: calling .bytes() is very inefficient when data is not in memory
  --> tests/ui/unbuffered_bytes.rs:10:5
   |
LL |     file.bytes();
   |     ^^^^^^^^^^^^
   |
   = help: consider using `BufReader`
   = note: `-D clippy::unbuffered-bytes` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::unbuffered_bytes)]`

error: calling .bytes() is very inefficient when data is not in memory
  --> tests/ui/unbuffered_bytes.rs:15:5
   |
LL |     tcp_stream.bytes();
   |     ^^^^^^^^^^^^^^^^^^
   |
   = help: consider using `BufReader`

error: calling .bytes() is very inefficient when data is not in memory
  --> tests/ui/unbuffered_bytes.rs:28:5
   |
LL |     s.bytes();
   |     ^^^^^^^^^
   |
   = help: consider using `BufReader`

error: calling .bytes() is very inefficient when data is not in memory
  --> tests/ui/unbuffered_bytes.rs:39:5
   |
LL |     r.bytes();
   |     ^^^^^^^^^
   |
   = help: consider using `BufReader`

error: aborting due to 4 previous errors