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