diff --git a/src/output/details.rs b/src/output/details.rs index 960b0c6..da78680 100644 --- a/src/output/details.rs +++ b/src/output/details.rs @@ -140,7 +140,7 @@ impl<'a> Render<'a> { let mut rows = Vec::new(); if let Some(columns) = self.opts.columns { - let env = Environment::default(); + let env = Environment::load_all(); let colz = columns.for_dir(self.dir); let mut table = Table::new(&colz, &self.colours, &env); diff --git a/src/output/grid_details.rs b/src/output/grid_details.rs index d889507..3d30cb0 100644 --- a/src/output/grid_details.rs +++ b/src/output/grid_details.rs @@ -47,7 +47,7 @@ impl<'a> Render<'a> { None => Vec::new(), }; - let env = Environment::default(); + let env = Environment::load_all(); let drender = self.clone().details(); diff --git a/src/output/table.rs b/src/output/table.rs index ae6e6af..6e5c80c 100644 --- a/src/output/table.rs +++ b/src/output/table.rs @@ -41,10 +41,8 @@ impl Environment { pub fn lock_users(&self) -> MutexGuard { self.users.lock().unwrap() } -} -impl Default for Environment { - fn default() -> Self { + pub fn load_all() -> Self { let tz = match determine_time_zone() { Ok(t) => Some(t), Err(ref e) => {