2022-01-13 06:18:19 -06:00
|
|
|
error: written amount is not handled
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/unused_io_amount.rs:10:5
|
2017-05-17 07:19:44 -05:00
|
|
|
|
|
2019-08-15 03:04:47 -05:00
|
|
|
LL | s.write(b"test")?;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2017-05-17 07:19:44 -05:00
|
|
|
|
|
2022-01-13 06:18:19 -06:00
|
|
|
= help: use `Write::write_all` instead, or handle partial writes
|
2022-09-22 11:04:22 -05:00
|
|
|
= note: `-D clippy::unused-io-amount` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::unused_io_amount)]`
|
2017-05-17 07:19:44 -05:00
|
|
|
|
2022-01-13 06:18:19 -06:00
|
|
|
error: read amount is not handled
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/unused_io_amount.rs:13:5
|
2017-05-17 07:19:44 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | s.read(&mut buf)?;
|
2017-05-17 07:19:44 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-01-13 06:18:19 -06:00
|
|
|
|
|
|
|
|
= help: use `Read::read_exact` instead, or handle partial reads
|
2017-05-17 07:19:44 -05:00
|
|
|
|
2022-01-13 06:18:19 -06:00
|
|
|
error: written amount is not handled
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/unused_io_amount.rs:19:5
|
2017-05-17 07:19:44 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | s.write(b"test").unwrap();
|
2017-05-17 07:19:44 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-01-13 06:18:19 -06:00
|
|
|
|
|
|
|
|
= help: use `Write::write_all` instead, or handle partial writes
|
2017-05-17 07:19:44 -05:00
|
|
|
|
2022-01-13 06:18:19 -06:00
|
|
|
error: read amount is not handled
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/unused_io_amount.rs:22:5
|
2017-05-17 07:19:44 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | s.read(&mut buf).unwrap();
|
2017-05-17 07:19:44 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-01-13 06:18:19 -06:00
|
|
|
|
|
|
|
|
= help: use `Read::read_exact` instead, or handle partial reads
|
2017-05-17 07:19:44 -05:00
|
|
|
|
2020-01-09 08:46:55 -06:00
|
|
|
error: read amount is not handled
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/unused_io_amount.rs:27:5
|
2020-01-09 08:46:55 -06:00
|
|
|
|
|
|
|
|
LL | s.read_vectored(&mut [io::IoSliceMut::new(&mut [])])?;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: written amount is not handled
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/unused_io_amount.rs:29:5
|
2020-01-09 08:46:55 -06:00
|
|
|
|
|
|
|
|
LL | s.write_vectored(&[io::IoSlice::new(&[])])?;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2022-01-13 06:18:19 -06:00
|
|
|
error: read amount is not handled
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/unused_io_amount.rs:37:5
|
2021-04-27 09:55:11 -05:00
|
|
|
|
|
|
|
|
LL | reader.read(&mut result).ok()?;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-01-13 06:18:19 -06:00
|
|
|
|
|
|
|
|
= help: use `Read::read_exact` instead, or handle partial reads
|
2021-04-27 09:55:11 -05:00
|
|
|
|
2022-01-13 06:18:19 -06:00
|
|
|
error: read amount is not handled
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/unused_io_amount.rs:47:5
|
2021-04-27 09:55:11 -05:00
|
|
|
|
|
|
|
|
LL | reader.read(&mut result).or_else(|err| Err(err))?;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-01-13 06:18:19 -06:00
|
|
|
|
|
|
|
|
= help: use `Read::read_exact` instead, or handle partial reads
|
2021-04-27 09:55:11 -05:00
|
|
|
|
2022-01-13 06:18:19 -06:00
|
|
|
error: read amount is not handled
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/unused_io_amount.rs:60:5
|
2021-04-27 09:55:11 -05:00
|
|
|
|
|
|
|
|
LL | reader.read(&mut result).or(Err(Error::Kind))?;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-01-13 06:18:19 -06:00
|
|
|
|
|
|
|
|
= help: use `Read::read_exact` instead, or handle partial reads
|
2021-04-27 09:55:11 -05:00
|
|
|
|
2022-01-13 06:18:19 -06:00
|
|
|
error: read amount is not handled
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/unused_io_amount.rs:68:5
|
2021-04-27 09:55:11 -05:00
|
|
|
|
|
|
|
|
LL | / reader
|
2023-08-24 14:32:12 -05:00
|
|
|
LL | |
|
2021-04-27 09:55:11 -05:00
|
|
|
LL | | .read(&mut result)
|
|
|
|
LL | | .or(Err(Error::Kind))
|
|
|
|
LL | | .or(Err(Error::Kind))
|
|
|
|
LL | | .expect("error");
|
|
|
|
| |________________________^
|
2022-01-13 06:18:19 -06:00
|
|
|
|
|
|
|
|
= help: use `Read::read_exact` instead, or handle partial reads
|
|
|
|
|
|
|
|
error: written amount is not handled
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/unused_io_amount.rs:78:5
|
2022-01-13 06:18:19 -06:00
|
|
|
|
|
2023-02-10 07:01:19 -06:00
|
|
|
LL | s.write(b"ok").is_ok();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: use `Write::write_all` instead, or handle partial writes
|
|
|
|
|
|
|
|
error: written amount is not handled
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/unused_io_amount.rs:80:5
|
2023-02-10 07:01:19 -06:00
|
|
|
|
|
|
|
|
LL | s.write(b"err").is_err();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: use `Write::write_all` instead, or handle partial writes
|
|
|
|
|
|
|
|
error: read amount is not handled
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/unused_io_amount.rs:83:5
|
2023-02-10 07:01:19 -06:00
|
|
|
|
|
|
|
|
LL | s.read(&mut buf).is_ok();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: use `Read::read_exact` instead, or handle partial reads
|
|
|
|
|
|
|
|
error: read amount is not handled
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/unused_io_amount.rs:85:5
|
2023-02-10 07:01:19 -06:00
|
|
|
|
|
|
|
|
LL | s.read(&mut buf).is_err();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: use `Read::read_exact` instead, or handle partial reads
|
|
|
|
|
|
|
|
error: written amount is not handled
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/unused_io_amount.rs:90:5
|
2023-02-10 07:01:19 -06:00
|
|
|
|
|
2022-01-13 06:18:19 -06:00
|
|
|
LL | w.write(b"hello world").await.unwrap();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: use `AsyncWriteExt::write_all` instead, or handle partial writes
|
|
|
|
|
|
|
|
error: read amount is not handled
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/unused_io_amount.rs:96:5
|
2022-01-13 06:18:19 -06:00
|
|
|
|
|
|
|
|
LL | r.read(&mut buf[..]).await.unwrap();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: use `AsyncReadExt::read_exact` instead, or handle partial reads
|
|
|
|
|
|
|
|
error: written amount is not handled
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/unused_io_amount.rs:104:5
|
2024-01-25 12:17:36 -06:00
|
|
|
|
|
|
|
|
LL | w.write(b"hello world");
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: use `AsyncWriteExt::write_all` instead, or handle partial writes
|
|
|
|
|
|
|
|
error: written amount is not handled
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/unused_io_amount.rs:110:9
|
2022-01-13 06:18:19 -06:00
|
|
|
|
|
|
|
|
LL | w.write(b"hello world").await?;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: use `AsyncWriteExt::write_all` instead, or handle partial writes
|
|
|
|
|
|
|
|
error: read amount is not handled
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/unused_io_amount.rs:119:9
|
2022-01-13 06:18:19 -06:00
|
|
|
|
|
|
|
|
LL | r.read(&mut buf[..]).await.or(Err(Error::Kind))?;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: use `AsyncReadExt::read_exact` instead, or handle partial reads
|
|
|
|
|
|
|
|
error: written amount is not handled
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/unused_io_amount.rs:128:5
|
2022-01-13 06:18:19 -06:00
|
|
|
|
|
|
|
|
LL | w.write(b"hello world").await.unwrap();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: use `AsyncWriteExt::write_all` instead, or handle partial writes
|
|
|
|
|
|
|
|
error: read amount is not handled
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/unused_io_amount.rs:134:5
|
2022-01-13 06:18:19 -06:00
|
|
|
|
|
|
|
|
LL | r.read(&mut buf[..]).await.unwrap();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: use `AsyncReadExt::read_exact` instead, or handle partial reads
|
2021-04-27 09:55:11 -05:00
|
|
|
|
2024-01-25 12:17:36 -06:00
|
|
|
error: written amount is not handled
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/unused_io_amount.rs:147:11
|
2024-01-25 12:17:36 -06:00
|
|
|
|
|
|
|
|
LL | match s.write(b"test") {
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: use `Write::write_all` instead, or handle partial writes
|
|
|
|
note: the result is consumed here, but the amount of I/O bytes remains unhandled
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/unused_io_amount.rs:149:9
|
2024-01-25 12:17:36 -06:00
|
|
|
|
|
|
|
|
LL | Ok(_) => todo!(),
|
2024-02-08 13:24:42 -06:00
|
|
|
| ^^^^^
|
2024-01-25 12:17:36 -06:00
|
|
|
|
|
|
|
error: read amount is not handled
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/unused_io_amount.rs:155:11
|
2024-01-25 12:17:36 -06:00
|
|
|
|
|
|
|
|
LL | match s.read(&mut buf) {
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: use `Read::read_exact` instead, or handle partial reads
|
|
|
|
note: the result is consumed here, but the amount of I/O bytes remains unhandled
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/unused_io_amount.rs:157:9
|
2024-01-25 12:17:36 -06:00
|
|
|
|
|
|
|
|
LL | Ok(_) => todo!(),
|
2024-02-08 13:24:42 -06:00
|
|
|
| ^^^^^
|
2024-01-25 12:17:36 -06:00
|
|
|
|
|
|
|
error: read amount is not handled
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/unused_io_amount.rs:164:11
|
2024-01-25 12:17:36 -06:00
|
|
|
|
|
|
|
|
LL | match s.read(&mut [0u8; 4]) {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: use `Read::read_exact` instead, or handle partial reads
|
|
|
|
note: the result is consumed here, but the amount of I/O bytes remains unhandled
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/unused_io_amount.rs:166:9
|
2024-01-25 12:17:36 -06:00
|
|
|
|
|
|
|
|
LL | Ok(_) => todo!(),
|
2024-02-08 13:24:42 -06:00
|
|
|
| ^^^^^
|
2024-01-25 12:17:36 -06:00
|
|
|
|
|
|
|
error: written amount is not handled
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/unused_io_amount.rs:173:11
|
2024-01-25 12:17:36 -06:00
|
|
|
|
|
|
|
|
LL | match s.write(b"test") {
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: use `Write::write_all` instead, or handle partial writes
|
|
|
|
note: the result is consumed here, but the amount of I/O bytes remains unhandled
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/unused_io_amount.rs:175:9
|
2024-01-25 12:17:36 -06:00
|
|
|
|
|
|
|
|
LL | Ok(_) => todo!(),
|
2024-02-08 13:24:42 -06:00
|
|
|
| ^^^^^
|
2024-01-25 12:17:36 -06:00
|
|
|
|
|
|
|
error: read amount is not handled
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/unused_io_amount.rs:186:8
|
2024-01-25 12:17:36 -06:00
|
|
|
|
|
|
|
|
LL | if let Ok(_) = s.read(&mut [0u8; 4]) {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: use `Read::read_exact` instead, or handle partial reads
|
|
|
|
note: the result is consumed here, but the amount of I/O bytes remains unhandled
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/unused_io_amount.rs:186:12
|
2024-01-25 12:17:36 -06:00
|
|
|
|
|
|
|
|
LL | if let Ok(_) = s.read(&mut [0u8; 4]) {
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: written amount is not handled
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/unused_io_amount.rs:193:8
|
2024-01-25 12:17:36 -06:00
|
|
|
|
|
|
|
|
LL | if let Ok(_) = s.write(b"test") {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: use `Write::write_all` instead, or handle partial writes
|
|
|
|
note: the result is consumed here, but the amount of I/O bytes remains unhandled
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/unused_io_amount.rs:193:12
|
2024-01-25 12:17:36 -06:00
|
|
|
|
|
|
|
|
LL | if let Ok(_) = s.write(b"test") {
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: written amount is not handled
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/unused_io_amount.rs:200:8
|
2024-01-25 12:17:36 -06:00
|
|
|
|
|
|
|
|
LL | if let Ok(..) = s.write(b"test") {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: use `Write::write_all` instead, or handle partial writes
|
|
|
|
note: the result is consumed here, but the amount of I/O bytes remains unhandled
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/unused_io_amount.rs:200:12
|
2024-01-25 12:17:36 -06:00
|
|
|
|
|
|
|
|
LL | if let Ok(..) = s.write(b"test") {
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 28 previous errors
|
2018-01-16 10:06:27 -06:00
|
|
|
|