Skip to content

Added implementations of AsRef and AsMut to ByteBuf #4

Added implementations of AsRef and AsMut to ByteBuf

Added implementations of AsRef and AsMut to ByteBuf #4

Triggered via push November 21, 2023 22:58
Status Success
Total duration 39s
Artifacts

release.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

12 warnings
match expression looks like `matches!` macro: src/bytes.rs#L276
warning: match expression looks like `matches!` macro --> src/bytes.rs:276:12 | 276 | Ok(match u8::read_from_be(src)? { | ____________^ 277 | | 0 => false, 278 | | _ => true 279 | | }) | |_________^ help: try: `!matches!(u8::read_from_be(src)?, 0)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_like_matches_macro
match expression looks like `matches!` macro: src/bytes.rs#L269
warning: match expression looks like `matches!` macro --> src/bytes.rs:269:12 | 269 | Ok(match u8::read_from_le(src)? { | ____________^ 270 | | 0 => false, 271 | | _ => true 272 | | }) | |_________^ help: try: `!matches!(u8::read_from_le(src)?, 0)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_like_matches_macro
casting integer literal to `u8` is unnecessary: src/bytes.rs#L261
warning: casting integer literal to `u8` is unnecessary --> src/bytes.rs:261:35 | 261 | false => dst.write_be(0 as u8) | ^^^^^^^ help: try: `0_u8` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
casting integer literal to `u8` is unnecessary: src/bytes.rs#L260
warning: casting integer literal to `u8` is unnecessary --> src/bytes.rs:260:34 | 260 | true => dst.write_be(1 as u8), | ^^^^^^^ help: try: `1_u8` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
casting integer literal to `u8` is unnecessary: src/bytes.rs#L254
warning: casting integer literal to `u8` is unnecessary --> src/bytes.rs:254:35 | 254 | false => dst.write_le(0 as u8) | ^^^^^^^ help: try: `0_u8` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
casting integer literal to `u8` is unnecessary: src/bytes.rs#L253
warning: casting integer literal to `u8` is unnecessary --> src/bytes.rs:253:34 | 253 | true => dst.write_le(1 as u8), | ^^^^^^^ help: try: `1_u8` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
match expression looks like `matches!` macro: src/bytes.rs#L242
warning: match expression looks like `matches!` macro --> src/bytes.rs:242:9 | 242 | / match u8::read_bytes_be(bytes) { 243 | | 0 => false, 244 | | _ => true 245 | | } | |_________^ help: try: `!matches!(u8::read_bytes_be(bytes), 0)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_like_matches_macro
match expression looks like `matches!` macro: src/bytes.rs#L235
warning: match expression looks like `matches!` macro --> src/bytes.rs:235:9 | 235 | / match u8::read_bytes_le(bytes) { 236 | | 0 => false, 237 | | _ => true 238 | | } | |_________^ help: try: `!matches!(u8::read_bytes_le(bytes), 0)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_like_matches_macro = note: `#[warn(clippy::match_like_matches_macro)]` on by default
casting integer literal to `u8` is unnecessary: src/bytes.rs#L228
warning: casting integer literal to `u8` is unnecessary --> src/bytes.rs:228:22 | 228 | false => (0 as u8).write_bytes_be(bytes) | ^^^^^^^^^ help: try: `0_u8` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
casting integer literal to `u8` is unnecessary: src/bytes.rs#L227
warning: casting integer literal to `u8` is unnecessary --> src/bytes.rs:227:21 | 227 | true => (1 as u8).write_bytes_be(bytes), | ^^^^^^^^^ help: try: `1_u8` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
casting integer literal to `u8` is unnecessary: src/bytes.rs#L221
warning: casting integer literal to `u8` is unnecessary --> src/bytes.rs:221:22 | 221 | false => (0 as u8).write_bytes_le(bytes) | ^^^^^^^^^ help: try: `0_u8` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
casting integer literal to `u8` is unnecessary: src/bytes.rs#L220
warning: casting integer literal to `u8` is unnecessary --> src/bytes.rs:220:21 | 220 | true => (1 as u8).write_bytes_le(bytes), | ^^^^^^^^^ help: try: `1_u8` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast = note: `#[warn(clippy::unnecessary_cast)]` on by default