mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 09:25:38 +02:00
touchup some clippy warnings in tests (#6612)
This commit is contained in:
@ -149,7 +149,7 @@ fn can_source_dynamic_path() {
|
||||
Playground::setup("can_source_dynamic_path", |dirs, sandbox| {
|
||||
let foo_file = "foo.nu";
|
||||
|
||||
sandbox.with_files(vec![FileWithContent(&foo_file, "echo foo")]);
|
||||
sandbox.with_files(vec![FileWithContent(foo_file, "echo foo")]);
|
||||
|
||||
let cmd = format!("let file = `{}`; source-env $file", foo_file);
|
||||
let actual = nu!(cwd: dirs.test(), &cmd);
|
||||
|
@ -289,7 +289,7 @@ proptest! {
|
||||
}
|
||||
#[test]
|
||||
fn to_nuon_from_nuon_string(s: String) {
|
||||
if s != "\\0" && s!= "" && !s.contains('\\') && !s.contains('"'){
|
||||
if s != "\\0" && !s.is_empty() && !s.contains('\\') && !s.contains('"'){
|
||||
let actual = nu!(
|
||||
cwd: "tests/fixtures/formats", pipeline(
|
||||
format!(r#"
|
||||
|
Reference in New Issue
Block a user