1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

clippy: simplify code according to nightly 'byte_char_slices' lint

https://rust-lang.github.io/rust-clippy/master/index.html#/byte_char_slices
This commit is contained in:
Ben Wiederhake 2024-07-18 15:14:54 +02:00
parent 84f8b7a98b
commit 471f047a64
6 changed files with 14 additions and 14 deletions

View file

@ -83,7 +83,7 @@ macro_rules! test_digest {
// The asterisk indicates that the digest was computed in
// binary mode.
let n = expected.len();
let expected = [&expected[..n - 3], &[b' ', b'-', b'\n']].concat();
let expected = [&expected[..n - 3], b" -\n"].concat();
new_ucmd!()
.args(&[DIGEST_ARG, BITS_ARG, "-t"])
.pipe_in("a\r\nb\r\nc\r\n")