diff options
Diffstat (limited to 'src/core.rs')
-rw-r--r-- | src/core.rs | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/src/core.rs b/src/core.rs index 54ec086..d806ada 100644 --- a/src/core.rs +++ b/src/core.rs @@ -1,8 +1,7 @@ use crate::color::Colors; use crate::display; use crate::flags::{ - ColorOption, Display, Flags, HyperlinkOption, Layout, Literal, PermissionFlag, SortOrder, - ThemeOption, + ColorOption, Display, Flags, HyperlinkOption, Layout, Literal, SortOrder, ThemeOption, }; use crate::git::GitCache; use crate::icon::Icons; @@ -106,18 +105,15 @@ impl Core { }; for path in paths { - let mut meta = match Meta::from_path( - &path, - self.flags.dereference.0, - self.flags.permission == PermissionFlag::Disable, - ) { - Ok(meta) => meta, - Err(err) => { - print_error!("{}: {}.", path.display(), err); - exit_code.set_if_greater(ExitCode::MajorIssue); - continue; - } - }; + let mut meta = + match Meta::from_path(&path, self.flags.dereference.0, self.flags.permission) { + Ok(meta) => meta, + Err(err) => { + print_error!("{}: {}.", path.display(), err); + exit_code.set_if_greater(ExitCode::MajorIssue); + continue; + } + }; let cache = if self.flags.blocks.0.contains(&Block::GitStatus) { Some(GitCache::new(&path)) |