summaryrefslogtreecommitdiffstats
path: root/src/core.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.rs')
-rw-r--r--src/core.rs26
1 files changed, 14 insertions, 12 deletions
diff --git a/src/core.rs b/src/core.rs
index dada4c5..54ec086 100644
--- a/src/core.rs
+++ b/src/core.rs
@@ -1,7 +1,8 @@
use crate::color::Colors;
use crate::display;
use crate::flags::{
- ColorOption, Display, Flags, HyperlinkOption, Layout, Literal, SortOrder, PermissionFlag, ThemeOption,
+ ColorOption, Display, Flags, HyperlinkOption, Layout, Literal, PermissionFlag, SortOrder,
+ ThemeOption,
};
use crate::git::GitCache;
use crate::icon::Icons;
@@ -105,17 +106,18 @@ 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 == PermissionFlag::Disable,
+ ) {
+ 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))