2020-03-10 09:41:24 +00:00
|
|
|
error: use of `File::read_to_end`
|
|
|
|
--> $DIR/verbose_file_reads.rs:23:5
|
2020-03-05 02:13:57 +00:00
|
|
|
|
|
|
|
|
LL | f.read_to_end(&mut buffer)?;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-03-10 09:41:24 +00:00
|
|
|
= help: consider using `fs::read` instead
|
2022-09-22 16:04:22 +00:00
|
|
|
= note: `-D clippy::verbose-file-reads` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::verbose_file_reads)]`
|
2020-03-05 02:13:57 +00:00
|
|
|
|
2020-03-10 09:41:24 +00:00
|
|
|
error: use of `File::read_to_string`
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/verbose_file_reads.rs:27:5
|
2020-03-05 02:13:57 +00:00
|
|
|
|
|
|
|
|
LL | f.read_to_string(&mut string_buffer)?;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-03-10 09:41:24 +00:00
|
|
|
= help: consider using `fs::read_to_string` instead
|
2020-03-05 02:13:57 +00:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|