We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b0639b commit d5f4c9fCopy full SHA for d5f4c9f
gix-path/src/env/tests.rs
@@ -57,7 +57,7 @@ mod system_prefix {
57
58
#[test]
59
fn exepath_no_relevant_subdir() {
60
- for names in [[].as_slice(), ["ucrt64"].as_slice()] {
+ for names in [&[][..], &["ucrt64"][..]] {
61
let exepath = ExePath::new();
62
exepath.create_separate_subdirs(names);
63
let outcome = system_prefix_from_exepath_var(|key| exepath.var_os_func(key));
@@ -93,10 +93,10 @@ mod system_prefix {
93
94
fn exepath_ambiguous_subdir() {
95
for names in [
96
- ["mingw32", "mingw64"].as_slice(),
97
- ["mingw32", "clangarm64"].as_slice(),
98
- ["mingw64", "clangarm64"].as_slice(),
99
- ["mingw32", "mingw64", "clangarm64"].as_slice(),
+ &["mingw32", "mingw64"][..],
+ &["mingw32", "clangarm64"][..],
+ &["mingw64", "clangarm64"][..],
+ &["mingw32", "mingw64", "clangarm64"][..],
100
] {
101
102
0 commit comments