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:
parent
84f8b7a98b
commit
471f047a64
6 changed files with 14 additions and 14 deletions
|
@ -1434,8 +1434,8 @@ fn check_complement_set2_too_big() {
|
|||
#[test]
|
||||
#[cfg(unix)]
|
||||
fn test_truncate_non_utf8_set() {
|
||||
let stdin = &[b'\x01', b'a', b'm', b'p', 0xfe_u8, 0xff_u8];
|
||||
let set1 = OsStr::from_bytes(&[b'a', 0xfe_u8, 0xff_u8, b'z']);
|
||||
let stdin = b"\x01amp\xfe\xff";
|
||||
let set1 = OsStr::from_bytes(b"a\xfe\xffz"); // spell-checker:disable-line
|
||||
let set2 = OsStr::from_bytes(b"01234");
|
||||
|
||||
new_ucmd!()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue