Skip to content

Commit

Permalink
style: apply clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
arunanshub committed Sep 24, 2024
1 parent df0af36 commit 29815a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/kernel/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,12 @@ mod tests {
#[test]
fn test_sanitize_file() {
let path = Path::new("/bin/bash.#prelink#.12345");
assert_eq!(sanitize_file(&path), Some(Path::new("/bin/bash")));
assert_eq!(sanitize_file(path), Some(Path::new("/bin/bash")));

let path = Path::new("/bin/bash");
assert_eq!(sanitize_file(&path), Some(Path::new("/bin/bash")));
assert_eq!(sanitize_file(path), Some(Path::new("/bin/bash")));

let path = Path::new("/bin/bash(deleted)");
assert_eq!(sanitize_file(&path), None);
assert_eq!(sanitize_file(path), None);
}
}

0 comments on commit 29815a6

Please sign in to comment.