mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
Remove a use of EnvStack::principal()
Try to get off of globals.
This commit is contained in:
parent
01d45ad755
commit
0e96a420d6
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue