mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-21 11:31:15 -03:00
Remove principal_parser() from yet more of the tests
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
use crate::env::{EnvMode, EnvStack, EnvVar, EnvVarFlags, Environment};
|
||||
use crate::parser::Parser;
|
||||
use crate::tests::prelude::*;
|
||||
use crate::wchar::prelude::*;
|
||||
use crate::wutil::wgetcwd;
|
||||
@@ -58,7 +57,7 @@ fn get_names(&self, flags: EnvMode) -> Vec<WString> {
|
||||
|
||||
/// Helper for test_timezone_env_vars().
|
||||
fn return_timezone_hour(tstamp: SystemTime, timezone: &wstr) -> libc::c_int {
|
||||
let vars = Parser::principal_parser().vars();
|
||||
let vars = EnvStack::new_dispatching();
|
||||
|
||||
vars.set_one(L!("TZ"), EnvMode::EXPORT, timezone.to_owned());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user