2022-06-16 10:39:06 -05:00
|
|
|
error: reading zero byte data to `Vec`
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/read_zero_byte_vec.rs:21:5
|
2022-06-16 10:39:06 -05:00
|
|
|
|
|
|
|
|
LL | f.read_exact(&mut data).unwrap();
|
2024-01-25 12:17:36 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.resize(20, 0); f.read_exact(&mut data)`
|
2022-06-16 10:39:06 -05:00
|
|
|
|
|
|
|
|
= note: `-D clippy::read-zero-byte-vec` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::read_zero_byte_vec)]`
|
2022-06-16 10:39:06 -05:00
|
|
|
|
|
|
|
error: reading zero byte data to `Vec`
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/read_zero_byte_vec.rs:27:5
|
2022-06-16 10:39:06 -05:00
|
|
|
|
|
|
|
|
LL | f.read_exact(&mut data2)?;
|
2024-01-25 12:17:36 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data2.resize(cap, 0); f.read_exact(&mut data2)`
|
2022-06-16 10:39:06 -05:00
|
|
|
|
|
|
|
error: reading zero byte data to `Vec`
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/read_zero_byte_vec.rs:32:5
|
2022-06-16 10:39:06 -05:00
|
|
|
|
|
|
|
|
LL | f.read_exact(&mut data3)?;
|
2024-01-25 12:17:36 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-06-16 10:39:06 -05:00
|
|
|
|
|
|
|
error: reading zero byte data to `Vec`
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/read_zero_byte_vec.rs:37:13
|
2022-06-16 10:39:06 -05:00
|
|
|
|
|
|
|
|
LL | let _ = f.read(&mut data4)?;
|
2024-01-25 12:17:36 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2022-06-16 10:39:06 -05:00
|
|
|
|
|
|
|
error: reading zero byte data to `Vec`
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/read_zero_byte_vec.rs:43:9
|
2022-06-16 10:39:06 -05:00
|
|
|
|
|
|
|
|
LL | f.read(&mut data5)
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: reading zero byte data to `Vec`
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/read_zero_byte_vec.rs:50:9
|
2022-06-16 10:39:06 -05:00
|
|
|
|
|
|
|
|
LL | f.read(&mut data6)
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: reading zero byte data to `Vec`
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/read_zero_byte_vec.rs:84:9
|
2024-01-25 12:17:36 -06:00
|
|
|
|
|
|
|
|
LL | f.read(&mut v)?;
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: reading zero byte data to `Vec`
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/read_zero_byte_vec.rs:94:5
|
2022-06-16 10:39:06 -05:00
|
|
|
|
|
|
|
|
LL | r.read(&mut data).await.unwrap();
|
2024-01-25 12:17:36 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-06-16 10:39:06 -05:00
|
|
|
|
|
|
|
error: reading zero byte data to `Vec`
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/read_zero_byte_vec.rs:99:5
|
2022-06-16 10:39:06 -05:00
|
|
|
|
|
|
|
|
LL | r.read_exact(&mut data2).await.unwrap();
|
2024-01-25 12:17:36 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-06-16 10:39:06 -05:00
|
|
|
|
|
|
|
error: reading zero byte data to `Vec`
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/read_zero_byte_vec.rs:106:5
|
2022-06-16 10:39:06 -05:00
|
|
|
|
|
|
|
|
LL | r.read(&mut data).await.unwrap();
|
2024-01-25 12:17:36 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-06-16 10:39:06 -05:00
|
|
|
|
|
|
|
error: reading zero byte data to `Vec`
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/read_zero_byte_vec.rs:111:5
|
2022-06-16 10:39:06 -05:00
|
|
|
|
|
|
|
|
LL | r.read_exact(&mut data2).await.unwrap();
|
2024-01-25 12:17:36 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-06-16 10:39:06 -05:00
|
|
|
|
2024-01-25 12:17:36 -06:00
|
|
|
error: aborting due to 11 previous errors
|
2022-06-16 10:39:06 -05:00
|
|
|
|