2021-12-31 17:20:02 +00:00
|
|
|
error: written amount is not handled
|
2021-12-27 16:17:17 +00:00
|
|
|
--> $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
|
|
|
|
|
2018-08-01 14:30:44 +00:00
|
|
|
= note: `-D clippy::unused-io-amount` implied by `-D warnings`
|
2021-12-31 17:20:02 +00:00
|
|
|
= help: use `Write::write_all` instead, or handle partial writes
|
2017-05-17 12:19:44 +00:00
|
|
|
|
2021-12-31 17:20:02 +00:00
|
|
|
error: read amount is not handled
|
2021-12-27 16:17:17 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:11: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
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2021-12-31 17:20:02 +00:00
|
|
|
|
|
|
|
|
= help: use `Read::read_exact` instead, or handle partial reads
|
2017-05-17 12:19:44 +00:00
|
|
|
|
2021-12-31 17:20:02 +00:00
|
|
|
error: written amount is not handled
|
2021-12-27 16:17:17 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:16: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
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
2021-12-31 17:20:02 +00:00
|
|
|
|
|
|
|
|
= help: use `Write::write_all` instead, or handle partial writes
|
2017-05-17 12:19:44 +00:00
|
|
|
|
2021-12-31 17:20:02 +00:00
|
|
|
error: read amount is not handled
|
2021-12-27 16:17:17 +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.read(&mut buf).unwrap();
|
2017-05-17 12:19:44 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
2021-12-31 17:20:02 +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
|
2021-12-27 16:17:17 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:22:5
|
2020-01-09 14:46:55 +00:00
|
|
|
|
|
|
|
|
LL | s.read_vectored(&mut [io::IoSliceMut::new(&mut [])])?;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: written amount is not handled
|
2021-12-27 16:17:17 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:23:5
|
2020-01-09 14:46:55 +00:00
|
|
|
|
|
|
|
|
LL | s.write_vectored(&[io::IoSlice::new(&[])])?;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2021-12-31 17:20:02 +00:00
|
|
|
error: read amount is not handled
|
2021-12-27 16:17:17 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:30:5
|
2021-04-16 18:12:16 +00:00
|
|
|
|
|
|
|
|
LL | reader.read(&mut result).ok()?;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2021-12-31 17:20:02 +00:00
|
|
|
|
|
|
|
|
= help: use `Read::read_exact` instead, or handle partial reads
|
2021-04-16 18:12:16 +00:00
|
|
|
|
2021-12-31 17:20:02 +00:00
|
|
|
error: read amount is not handled
|
2021-12-27 16:17:17 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:39:5
|
2021-04-16 18:12:16 +00:00
|
|
|
|
|
|
|
|
LL | reader.read(&mut result).or_else(|err| Err(err))?;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2021-12-31 17:20:02 +00:00
|
|
|
|
|
|
|
|
= help: use `Read::read_exact` instead, or handle partial reads
|
2021-04-16 18:12:16 +00:00
|
|
|
|
2021-12-31 17:20:02 +00:00
|
|
|
error: read amount is not handled
|
2021-12-27 16:17:17 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:51:5
|
2021-04-16 18:12:16 +00:00
|
|
|
|
|
|
|
|
LL | reader.read(&mut result).or(Err(Error::Kind))?;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2021-12-31 17:20:02 +00:00
|
|
|
|
|
|
|
|
= help: use `Read::read_exact` instead, or handle partial reads
|
2021-04-16 18:12:16 +00:00
|
|
|
|
2021-12-31 17:20:02 +00:00
|
|
|
error: read amount is not handled
|
2021-12-27 16:17:17 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:58:5
|
2021-04-16 18:12:16 +00:00
|
|
|
|
|
|
|
|
LL | / reader
|
|
|
|
LL | | .read(&mut result)
|
|
|
|
LL | | .or(Err(Error::Kind))
|
|
|
|
LL | | .or(Err(Error::Kind))
|
|
|
|
LL | | .expect("error");
|
|
|
|
| |________________________^
|
2021-12-31 17:20:02 +00:00
|
|
|
|
|
|
|
|
= help: use `Read::read_exact` instead, or handle partial reads
|
2021-04-16 18:12:16 +00:00
|
|
|
|
2021-12-31 17:20:02 +00:00
|
|
|
error: written amount is not handled
|
2021-12-27 16:17:17 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:67:5
|
|
|
|
|
|
|
|
|
LL | w.write(b"hello world").await.unwrap();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2021-12-31 17:20:02 +00:00
|
|
|
|
|
|
|
|
= help: use `AsyncWriteExt::write_all` instead, or handle partial writes
|
2021-12-27 16:17:17 +00:00
|
|
|
|
2021-12-31 17:20:02 +00:00
|
|
|
error: read amount is not handled
|
2021-12-27 16:17:17 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:72:5
|
|
|
|
|
|
|
|
|
LL | r.read(&mut buf[..]).await.unwrap();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2021-12-31 17:20:02 +00:00
|
|
|
|
|
|
|
|
= help: use `AsyncReadExt::read_exact` instead, or handle partial reads
|
2021-12-27 16:17:17 +00:00
|
|
|
|
2021-12-31 17:20:02 +00:00
|
|
|
error: written amount is not handled
|
2021-12-27 16:17:17 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:85:9
|
|
|
|
|
|
|
|
|
LL | w.write(b"hello world").await?;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2021-12-31 17:20:02 +00:00
|
|
|
|
|
|
|
|
= help: use `AsyncWriteExt::write_all` instead, or handle partial writes
|
2021-12-27 16:17:17 +00:00
|
|
|
|
2021-12-31 17:20:02 +00:00
|
|
|
error: read amount is not handled
|
2021-12-27 16:17:17 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:93:9
|
|
|
|
|
|
|
|
|
LL | r.read(&mut buf[..]).await.or(Err(Error::Kind))?;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2021-12-31 17:20:02 +00:00
|
|
|
|
|
|
|
|
= help: use `AsyncReadExt::read_exact` instead, or handle partial reads
|
2021-12-27 16:17:17 +00:00
|
|
|
|
2021-12-31 17:20:02 +00:00
|
|
|
error: written amount is not handled
|
2021-12-27 16:17:17 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:101:5
|
|
|
|
|
|
|
|
|
LL | w.write(b"hello world").await.unwrap();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2021-12-31 17:20:02 +00:00
|
|
|
|
|
|
|
|
= help: use `AsyncWriteExt::write_all` instead, or handle partial writes
|
2021-12-27 16:17:17 +00:00
|
|
|
|
2021-12-31 17:20:02 +00:00
|
|
|
error: read amount is not handled
|
2021-12-27 16:17:17 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:106:5
|
|
|
|
|
|
|
|
|
LL | r.read(&mut buf[..]).await.unwrap();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2021-12-31 17:20:02 +00:00
|
|
|
|
|
|
|
|
= help: use `AsyncReadExt::read_exact` instead, or handle partial reads
|
2021-12-27 16:17:17 +00:00
|
|
|
|
|
|
|
error: aborting due to 16 previous errors
|
2018-01-16 16:06:27 +00:00
|
|
|
|