Rust 1.85, edition=2024 (#15741)

This commit is contained in:
Jack Wright
2025-05-13 07:49:30 -07:00
committed by GitHub
parent 1a0986903f
commit c2ac8f730e
793 changed files with 4276 additions and 3687 deletions

View File

@ -1,4 +1,4 @@
use nu_test_support::fs::{file_contents, Stub};
use nu_test_support::fs::{Stub, file_contents};
use nu_test_support::playground::Playground;
use nu_test_support::{nu, pipeline};
use std::io::Write;
@ -96,9 +96,11 @@ fn save_stderr_and_stdout_to_same_file() {
do -c {nu -n -c 'nu --testbin echo_env FOO; nu --testbin echo_env_stderr BAZ'} | save -r save_test_5/new-file.txt --stderr save_test_5/new-file.txt
"#,
);
assert!(actual
.err
.contains("can't save both input and stderr input to the same file"));
assert!(
actual
.err
.contains("can't save both input and stderr input to the same file")
);
})
}
@ -340,9 +342,11 @@ fn save_same_file_with_extension() {
)
);
assert!(actual
.err
.contains("pipeline input and output are the same file"));
assert!(
actual
.err
.contains("pipeline input and output are the same file")
);
})
}
@ -361,9 +365,11 @@ fn save_same_file_with_extension_pipeline() {
)
);
assert!(actual
.err
.contains("pipeline input and output are the same file"));
assert!(
actual
.err
.contains("pipeline input and output are the same file")
);
})
}
@ -381,9 +387,11 @@ fn save_same_file_without_extension() {
)
);
assert!(actual
.err
.contains("pipeline input and output are the same file"));
assert!(
actual
.err
.contains("pipeline input and output are the same file")
);
})
}
@ -402,9 +410,11 @@ fn save_same_file_without_extension_pipeline() {
)
);
assert!(actual
.err
.contains("pipeline input and output are the same file"));
assert!(
actual
.err
.contains("pipeline input and output are the same file")
);
})
}