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