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

Clippy fixes in multiple crates

This commit is contained in:
Jeffrey Finkelstein 2022-08-21 22:48:09 -04:00
parent 5a726e1ab3
commit 8458bf1387
10 changed files with 39 additions and 40 deletions

View file

@ -257,14 +257,12 @@ fn test_filter() {
// assert all characters are 'i' / no character is not 'i'
// (assert that command succeeded)
let glob = Glob::new(&at, ".", r"x[[:alpha:]][[:alpha:]]$");
assert!(
glob.collate().iter().find(|&&c| {
// is not i
c != (b'i')
assert!(!glob.collate().iter().any(|&c| {
// is not i
c != (b'i')
// is not newline
&& c != (b'\n')
}) == None
);
}));
}
#[test]