rust/tests/ui/verbose_file_reads.stderr

21 lines
635 B
Plaintext
Raw Normal View History

2020-03-10 04:41:24 -05:00
error: use of `File::read_to_end`
2024-02-17 06:16:29 -06:00
--> tests/ui/verbose_file_reads.rs:23:5
|
LL | f.read_to_end(&mut buffer)?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2020-03-10 04:41:24 -05:00
= help: consider using `fs::read` instead
2022-09-22 11:04:22 -05:00
= note: `-D clippy::verbose-file-reads` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::verbose_file_reads)]`
2020-03-10 04:41:24 -05:00
error: use of `File::read_to_string`
2024-02-17 06:16:29 -06:00
--> tests/ui/verbose_file_reads.rs:27:5
|
LL | f.read_to_string(&mut string_buffer)?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2020-03-10 04:41:24 -05:00
= help: consider using `fs::read_to_string` instead
error: aborting due to 2 previous errors