mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 15:11:30 +00:00
20 lines
635 B
Text
20 lines
635 B
Text
error: use of `File::read_to_end`
|
|
--> tests/ui/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`
|
|
= help: to override `-D warnings` add `#[allow(clippy::verbose_file_reads)]`
|
|
|
|
error: use of `File::read_to_string`
|
|
--> tests/ui/verbose_file_reads.rs:27:5
|
|
|
|
|
LL | f.read_to_string(&mut string_buffer)?;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: consider using `fs::read_to_string` instead
|
|
|
|
error: aborting due to 2 previous errors
|
|
|