rust/tests/ui/verbose_file_reads.stderr

20 lines
547 B
Plaintext
Raw Normal View History

2020-03-10 09:41:24 +00:00
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`
2020-03-10 09:41:24 +00:00
= help: consider using `fs::read` instead
2020-03-10 09:41:24 +00:00
error: use of `File::read_to_string`
--> $DIR/verbose_file_reads.rs:26:5
|
LL | f.read_to_string(&mut string_buffer)?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2020-03-10 09:41:24 +00:00
= help: consider using `fs::read_to_string` instead
error: aborting due to 2 previous errors