fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: written amount is not handled 2 --> $DIR/unused_io_amount.rs:9:5 3 | 4LL | s.write(b"test")?; 5 | ^^^^^^^^^^^^^^^^^ 6 | 7 = help: use `Write::write_all` instead, or handle partial writes 8 = note: `-D clippy::unused-io-amount` implied by `-D warnings` 9 = help: to override `-D warnings` add `#[allow(clippy::unused_io_amount)]` 10 11error: read amount is not handled 12 --> $DIR/unused_io_amount.rs:12:5 13 | 14LL | s.read(&mut buf)?; 15 | ^^^^^^^^^^^^^^^^^ 16 | 17 = help: use `Read::read_exact` instead, or handle partial reads 18 19error: written amount is not handled 20 --> $DIR/unused_io_amount.rs:18:5 21 | 22LL | s.write(b"test").unwrap(); 23 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 24 | 25 = help: use `Write::write_all` instead, or handle partial writes 26 27error: read amount is not handled 28 --> $DIR/unused_io_amount.rs:21:5 29 | 30LL | s.read(&mut buf).unwrap(); 31 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 32 | 33 = help: use `Read::read_exact` instead, or handle partial reads 34 35error: read amount is not handled 36 --> $DIR/unused_io_amount.rs:26:5 37 | 38LL | s.read_vectored(&mut [io::IoSliceMut::new(&mut [])])?; 39 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 40 41error: written amount is not handled 42 --> $DIR/unused_io_amount.rs:28:5 43 | 44LL | s.write_vectored(&[io::IoSlice::new(&[])])?; 45 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 46 47error: read amount is not handled 48 --> $DIR/unused_io_amount.rs:36:5 49 | 50LL | reader.read(&mut result).ok()?; 51 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 52 | 53 = help: use `Read::read_exact` instead, or handle partial reads 54 55error: read amount is not handled 56 --> $DIR/unused_io_amount.rs:46:5 57 | 58LL | reader.read(&mut result).or_else(|err| Err(err))?; 59 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 60 | 61 = help: use `Read::read_exact` instead, or handle partial reads 62 63error: read amount is not handled 64 --> $DIR/unused_io_amount.rs:59:5 65 | 66LL | reader.read(&mut result).or(Err(Error::Kind))?; 67 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 68 | 69 = help: use `Read::read_exact` instead, or handle partial reads 70 71error: read amount is not handled 72 --> $DIR/unused_io_amount.rs:67:5 73 | 74LL | / reader 75LL | | 76LL | | .read(&mut result) 77LL | | .or(Err(Error::Kind)) 78LL | | .or(Err(Error::Kind)) 79LL | | .expect("error"); 80 | |________________________^ 81 | 82 = help: use `Read::read_exact` instead, or handle partial reads 83 84error: written amount is not handled 85 --> $DIR/unused_io_amount.rs:77:5 86 | 87LL | s.write(b"ok").is_ok(); 88 | ^^^^^^^^^^^^^^^^^^^^^^ 89 | 90 = help: use `Write::write_all` instead, or handle partial writes 91 92error: written amount is not handled 93 --> $DIR/unused_io_amount.rs:79:5 94 | 95LL | s.write(b"err").is_err(); 96 | ^^^^^^^^^^^^^^^^^^^^^^^^ 97 | 98 = help: use `Write::write_all` instead, or handle partial writes 99 100error: read amount is not handled 101 --> $DIR/unused_io_amount.rs:82:5 102 | 103LL | s.read(&mut buf).is_ok(); 104 | ^^^^^^^^^^^^^^^^^^^^^^^^ 105 | 106 = help: use `Read::read_exact` instead, or handle partial reads 107 108error: read amount is not handled 109 --> $DIR/unused_io_amount.rs:84:5 110 | 111LL | s.read(&mut buf).is_err(); 112 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 113 | 114 = help: use `Read::read_exact` instead, or handle partial reads 115 116error: written amount is not handled 117 --> $DIR/unused_io_amount.rs:89:5 118 | 119LL | w.write(b"hello world").await.unwrap(); 120 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 121 | 122 = help: use `AsyncWriteExt::write_all` instead, or handle partial writes 123 124error: read amount is not handled 125 --> $DIR/unused_io_amount.rs:95:5 126 | 127LL | r.read(&mut buf[..]).await.unwrap(); 128 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 129 | 130 = help: use `AsyncReadExt::read_exact` instead, or handle partial reads 131 132error: written amount is not handled 133 --> $DIR/unused_io_amount.rs:109:9 134 | 135LL | w.write(b"hello world").await?; 136 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 137 | 138 = help: use `AsyncWriteExt::write_all` instead, or handle partial writes 139 140error: read amount is not handled 141 --> $DIR/unused_io_amount.rs:118:9 142 | 143LL | r.read(&mut buf[..]).await.or(Err(Error::Kind))?; 144 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 145 | 146 = help: use `AsyncReadExt::read_exact` instead, or handle partial reads 147 148error: written amount is not handled 149 --> $DIR/unused_io_amount.rs:127:5 150 | 151LL | w.write(b"hello world").await.unwrap(); 152 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 153 | 154 = help: use `AsyncWriteExt::write_all` instead, or handle partial writes 155 156error: read amount is not handled 157 --> $DIR/unused_io_amount.rs:133:5 158 | 159LL | r.read(&mut buf[..]).await.unwrap(); 160 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 161 | 162 = help: use `AsyncReadExt::read_exact` instead, or handle partial reads 163 164error: aborting due to 20 previous errors 165