2022-01-13 06:18:19 -06:00
|
|
|
error: written amount is not handled
|
|
|
|
--> $DIR/unused_io_amount.rs:9: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`
|
2017-05-17 07:19:44 -05:00
|
|
|
|
2022-01-13 06:18:19 -06:00
|
|
|
error: read amount is not handled
|
2023-07-28 14:35:48 -05:00
|
|
|
--> $DIR/unused_io_amount.rs:12: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
|
2023-07-28 14:35:48 -05:00
|
|
|
--> $DIR/unused_io_amount.rs:18: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
|
2023-07-28 14:35:48 -05:00
|
|
|
--> $DIR/unused_io_amount.rs:21: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
|
2023-07-28 14:35:48 -05:00
|
|
|
--> $DIR/unused_io_amount.rs:26:5
|
2020-01-09 08:46:55 -06:00
|
|
|
|
|
|
|
|
LL | s.read_vectored(&mut [io::IoSliceMut::new(&mut [])])?;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: written amount is not handled
|
2023-07-28 14:35:48 -05:00
|
|
|
--> $DIR/unused_io_amount.rs:28: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
|
2023-07-28 14:35:48 -05:00
|
|
|
--> $DIR/unused_io_amount.rs:36: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
|
2023-07-28 14:35:48 -05:00
|
|
|
--> $DIR/unused_io_amount.rs:46: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
|
2023-07-28 14:35:48 -05:00
|
|
|
--> $DIR/unused_io_amount.rs:59: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
|
2023-07-28 14:35:48 -05:00
|
|
|
--> $DIR/unused_io_amount.rs:67:5
|
2021-04-27 09:55:11 -05:00
|
|
|
|
|
|
|
|
LL | / reader
|
2023-07-28 14:35:48 -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
|
2023-07-28 14:35:48 -05:00
|
|
|
--> $DIR/unused_io_amount.rs:77:5
|
2022-01-13 06:18:19 -06:00
|
|
|
|
|
2023-01-24 17:18:35 -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
|
2023-07-28 14:35:48 -05:00
|
|
|
--> $DIR/unused_io_amount.rs:79:5
|
2023-01-24 17:18:35 -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
|
2023-07-28 14:35:48 -05:00
|
|
|
--> $DIR/unused_io_amount.rs:82:5
|
2023-01-24 17:18:35 -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
|
2023-07-28 14:35:48 -05:00
|
|
|
--> $DIR/unused_io_amount.rs:84:5
|
2023-01-24 17:18:35 -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
|
2023-07-28 14:35:48 -05:00
|
|
|
--> $DIR/unused_io_amount.rs:89:5
|
2023-01-24 17:18:35 -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
|
2023-07-28 14:35:48 -05:00
|
|
|
--> $DIR/unused_io_amount.rs:95: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
|
2023-07-28 14:35:48 -05:00
|
|
|
--> $DIR/unused_io_amount.rs:109: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
|
2023-07-28 14:35:48 -05:00
|
|
|
--> $DIR/unused_io_amount.rs:118: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
|
2023-07-28 14:35:48 -05:00
|
|
|
--> $DIR/unused_io_amount.rs:127: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
|
2023-07-28 14:35:48 -05:00
|
|
|
--> $DIR/unused_io_amount.rs:133: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
|
|
|
|
2023-01-24 17:18:35 -06:00
|
|
|
error: aborting due to 20 previous errors
|
2018-01-16 10:06:27 -06:00
|
|
|
|