mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-04 18:40:18 +00:00
19 lines
547 B
Text
19 lines
547 B
Text
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
|
|
|