2022-01-13 12:18:19 +00:00
|
|
|
error: written amount is not handled
|
|
|
|
--> $DIR/unused_io_amount.rs:9:5
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
2019-08-15 08:04:47 +00:00
|
|
|
LL | s.write(b"test")?;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
2022-01-13 12:18:19 +00:00
|
|
|
= help: use `Write::write_all` instead, or handle partial writes
|
2022-09-22 16:04:22 +00:00
|
|
|
= note: `-D clippy::unused-io-amount` implied by `-D warnings`
|
2017-05-17 12:19:44 +00:00
|
|
|
|
2022-01-13 12:18:19 +00:00
|
|
|
error: read amount is not handled
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:12:5
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | s.read(&mut buf)?;
|
2017-05-17 12:19:44 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
|
= help: use `Read::read_exact` instead, or handle partial reads
|
2017-05-17 12:19:44 +00:00
|
|
|
|
2022-01-13 12:18:19 +00:00
|
|
|
error: written amount is not handled
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:18:5
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | s.write(b"test").unwrap();
|
2017-05-17 12:19:44 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
|
= help: use `Write::write_all` instead, or handle partial writes
|
2017-05-17 12:19:44 +00:00
|
|
|
|
2022-01-13 12:18:19 +00:00
|
|
|
error: read amount is not handled
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:21:5
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | s.read(&mut buf).unwrap();
|
2017-05-17 12:19:44 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
|
= help: use `Read::read_exact` instead, or handle partial reads
|
2017-05-17 12:19:44 +00:00
|
|
|
|
2020-01-09 14:46:55 +00:00
|
|
|
error: read amount is not handled
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:26:5
|
2020-01-09 14:46:55 +00:00
|
|
|
|
|
|
|
|
LL | s.read_vectored(&mut [io::IoSliceMut::new(&mut [])])?;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: written amount is not handled
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:28:5
|
2020-01-09 14:46:55 +00:00
|
|
|
|
|
|
|
|
LL | s.write_vectored(&[io::IoSlice::new(&[])])?;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2022-01-13 12:18:19 +00:00
|
|
|
error: read amount is not handled
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:36:5
|
2021-04-27 14:55:11 +00:00
|
|
|
|
|
|
|
|
LL | reader.read(&mut result).ok()?;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
|
= help: use `Read::read_exact` instead, or handle partial reads
|
2021-04-27 14:55:11 +00:00
|
|
|
|
2022-01-13 12:18:19 +00:00
|
|
|
error: read amount is not handled
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:46:5
|
2021-04-27 14:55:11 +00:00
|
|
|
|
|
|
|
|
LL | reader.read(&mut result).or_else(|err| Err(err))?;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
|
= help: use `Read::read_exact` instead, or handle partial reads
|
2021-04-27 14:55:11 +00:00
|
|
|
|
2022-01-13 12:18:19 +00:00
|
|
|
error: read amount is not handled
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:59:5
|
2021-04-27 14:55:11 +00:00
|
|
|
|
|
|
|
|
LL | reader.read(&mut result).or(Err(Error::Kind))?;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
|
= help: use `Read::read_exact` instead, or handle partial reads
|
2021-04-27 14:55:11 +00:00
|
|
|
|
2022-01-13 12:18:19 +00:00
|
|
|
error: read amount is not handled
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:67:5
|
2021-04-27 14:55:11 +00:00
|
|
|
|
|
|
|
|
LL | / reader
|
2023-07-28 19:35:48 +00:00
|
|
|
LL | |
|
2021-04-27 14:55:11 +00:00
|
|
|
LL | | .read(&mut result)
|
|
|
|
LL | | .or(Err(Error::Kind))
|
|
|
|
LL | | .or(Err(Error::Kind))
|
|
|
|
LL | | .expect("error");
|
|
|
|
| |________________________^
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
|
= help: use `Read::read_exact` instead, or handle partial reads
|
|
|
|
|
|
|
|
error: written amount is not handled
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:77:5
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
2023-01-24 23:18:35 +00:00
|
|
|
LL | s.write(b"ok").is_ok();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: use `Write::write_all` instead, or handle partial writes
|
|
|
|
|
|
|
|
error: written amount is not handled
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:79:5
|
2023-01-24 23:18:35 +00:00
|
|
|
|
|
|
|
|
LL | s.write(b"err").is_err();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: use `Write::write_all` instead, or handle partial writes
|
|
|
|
|
|
|
|
error: read amount is not handled
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:82:5
|
2023-01-24 23:18:35 +00:00
|
|
|
|
|
|
|
|
LL | s.read(&mut buf).is_ok();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: use `Read::read_exact` instead, or handle partial reads
|
|
|
|
|
|
|
|
error: read amount is not handled
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:84:5
|
2023-01-24 23:18:35 +00:00
|
|
|
|
|
|
|
|
LL | s.read(&mut buf).is_err();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: use `Read::read_exact` instead, or handle partial reads
|
|
|
|
|
|
|
|
error: written amount is not handled
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:89:5
|
2023-01-24 23:18:35 +00:00
|
|
|
|
|
2022-01-13 12:18:19 +00: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
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:95:5
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
|
LL | r.read(&mut buf[..]).await.unwrap();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: use `AsyncReadExt::read_exact` instead, or handle partial reads
|
|
|
|
|
|
|
|
error: written amount is not handled
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:109:9
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
|
LL | w.write(b"hello world").await?;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: use `AsyncWriteExt::write_all` instead, or handle partial writes
|
|
|
|
|
|
|
|
error: read amount is not handled
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:118:9
|
2022-01-13 12:18:19 +00: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
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:127:5
|
2022-01-13 12:18:19 +00: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
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:133:5
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
|
|
|
LL | r.read(&mut buf[..]).await.unwrap();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: use `AsyncReadExt::read_exact` instead, or handle partial reads
|
2021-04-27 14:55:11 +00:00
|
|
|
|
2023-01-24 23:18:35 +00:00
|
|
|
error: aborting due to 20 previous errors
|
2018-01-16 16:06:27 +00:00
|
|
|
|