mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 06:30:08 +02:00
Clippy fix for Rust 1.63 (#6299)
Take more sensitive lints into account Somewhat ugly in some cases is the replacement of `.get(0)` with `.first()`
This commit is contained in:
committed by
GitHub
parent
08c98967e0
commit
c2f4969d4f
@ -412,7 +412,7 @@ fn lists_with_directory_flag() {
|
||||
));
|
||||
let expected = [".", ".", "..", "../dir_files", "../dir_files/nushell.json"].join("");
|
||||
#[cfg(windows)]
|
||||
let expected = expected.replace("/", "\\");
|
||||
let expected = expected.replace('/', "\\");
|
||||
assert_eq!(
|
||||
actual.out, expected,
|
||||
"column names are incorrect for ls --directory (-D)"
|
||||
|
@ -41,10 +41,7 @@ fn port_with_already_usage() {
|
||||
return;
|
||||
}
|
||||
}
|
||||
assert!(
|
||||
false,
|
||||
"already check port report AddrInUse for seveval times, but still failed."
|
||||
);
|
||||
panic!("already check port report AddrInUse for seveval times, but still failed.");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
Reference in New Issue
Block a user