mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-14 22:45:38 +08:00
Remove a use of EnvStack::principal()
Try to get off of globals.
This commit is contained in:
parent
01d45ad755
commit
0e96a420d6
@ -36,8 +36,8 @@ fn test_is_potential_path() {
|
||||
let wd = L!("test/is_potential_path_test/").to_owned();
|
||||
let wds = [L!(".").to_owned(), wd];
|
||||
|
||||
let vars = EnvStack::principal().clone();
|
||||
let ctx = OperationContext::background(&*vars, EXPANSION_LIMIT_DEFAULT);
|
||||
let vars = EnvStack::new();
|
||||
let ctx = OperationContext::background(&vars, EXPANSION_LIMIT_DEFAULT);
|
||||
|
||||
assert!(is_potential_path(
|
||||
L!("al"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user