2022-01-13 12:18:19 +00:00
|
|
|
error: written amount is not handled
|
2024-01-25 18:17:36 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:10: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`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::unused_io_amount)]`
|
2017-05-17 12:19:44 +00:00
|
|
|
|
2022-01-13 12:18:19 +00:00
|
|
|
error: read amount is not handled
|
2024-01-25 18:17:36 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:13: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
|
2024-01-25 18:17:36 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:19: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
|
2024-01-25 18:17:36 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:22: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
|
2024-01-25 18:17:36 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:27:5
|
2020-01-09 14:46:55 +00:00
|
|
|
|
|
|
|
|
LL | s.read_vectored(&mut [io::IoSliceMut::new(&mut [])])?;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: written amount is not handled
|
2024-01-25 18:17:36 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:29: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
|
2024-01-25 18:17:36 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:37: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
|
2024-01-25 18:17:36 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:47: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
|
2024-01-25 18:17:36 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:60: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
|
2024-01-25 18:17:36 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:68:5
|
2021-04-27 14:55:11 +00:00
|
|
|
|
|
|
|
|
LL | / reader
|
2023-08-24 19:32:12 +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
|
2024-01-25 18:17:36 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:78:5
|
2022-01-13 12:18:19 +00:00
|
|
|
|
|
2023-02-10 13:01:19 +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
|
2024-01-25 18:17:36 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:80:5
|
2023-02-10 13:01:19 +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
|
2024-01-25 18:17:36 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:83:5
|
2023-02-10 13:01:19 +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
|
2024-01-25 18:17:36 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:85:5
|
2023-02-10 13:01:19 +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
|
2024-01-25 18:17:36 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:90:5
|
2023-02-10 13:01:19 +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
|
2024-01-25 18:17:36 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:96: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
|
2024-01-25 18:17:36 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:104:5
|
|
|
|
|
|
|
|
|
LL | w.write(b"hello world");
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: use `AsyncWriteExt::write_all` instead, or handle partial writes
|
|
|
|
|
|
|
|
error: written amount is not handled
|
|
|
|
--> $DIR/unused_io_amount.rs:110: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
|
2024-01-25 18:17:36 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:119: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
|
2024-01-25 18:17:36 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:128: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
|
2024-01-25 18:17:36 +00:00
|
|
|
--> $DIR/unused_io_amount.rs:134: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
|
|
|
|
2024-01-25 18:17:36 +00:00
|
|
|
error: written amount is not handled
|
|
|
|
--> $DIR/unused_io_amount.rs:147:11
|
|
|
|
|
|
|
|
|
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
|
|
|
|
--> $DIR/unused_io_amount.rs:149:9
|
|
|
|
|
|
|
|
|
LL | Ok(_) => todo!(),
|
2024-02-08 19:24:42 +00:00
|
|
|
| ^^^^^
|
2024-01-25 18:17:36 +00:00
|
|
|
|
|
|
|
error: read amount is not handled
|
|
|
|
--> $DIR/unused_io_amount.rs:155:11
|
|
|
|
|
|
|
|
|
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
|
|
|
|
--> $DIR/unused_io_amount.rs:157:9
|
|
|
|
|
|
|
|
|
LL | Ok(_) => todo!(),
|
2024-02-08 19:24:42 +00:00
|
|
|
| ^^^^^
|
2024-01-25 18:17:36 +00:00
|
|
|
|
|
|
|
error: read amount is not handled
|
|
|
|
--> $DIR/unused_io_amount.rs:164:11
|
|
|
|
|
|
|
|
|
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
|
|
|
|
--> $DIR/unused_io_amount.rs:166:9
|
|
|
|
|
|
|
|
|
LL | Ok(_) => todo!(),
|
2024-02-08 19:24:42 +00:00
|
|
|
| ^^^^^
|
2024-01-25 18:17:36 +00:00
|
|
|
|
|
|
|
error: written amount is not handled
|
|
|
|
--> $DIR/unused_io_amount.rs:173:11
|
|
|
|
|
|
|
|
|
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
|
|
|
|
--> $DIR/unused_io_amount.rs:175:9
|
|
|
|
|
|
|
|
|
LL | Ok(_) => todo!(),
|
2024-02-08 19:24:42 +00:00
|
|
|
| ^^^^^
|
2024-01-25 18:17:36 +00:00
|
|
|
|
|
|
|
error: read amount is not handled
|
|
|
|
--> $DIR/unused_io_amount.rs:186:8
|
|
|
|
|
|
|
|
|
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
|
|
|
|
--> $DIR/unused_io_amount.rs:186:12
|
|
|
|
|
|
|
|
|
LL | if let Ok(_) = s.read(&mut [0u8; 4]) {
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: written amount is not handled
|
|
|
|
--> $DIR/unused_io_amount.rs:193:8
|
|
|
|
|
|
|
|
|
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
|
|
|
|
--> $DIR/unused_io_amount.rs:193:12
|
|
|
|
|
|
|
|
|
LL | if let Ok(_) = s.write(b"test") {
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: written amount is not handled
|
|
|
|
--> $DIR/unused_io_amount.rs:200:8
|
|
|
|
|
|
|
|
|
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
|
|
|
|
--> $DIR/unused_io_amount.rs:200:12
|
|
|
|
|
|
|
|
|
LL | if let Ok(..) = s.write(b"test") {
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 28 previous errors
|
2018-01-16 16:06:27 +00:00
|
|
|
|