mirror of
https://github.com/lsd-rs/lsd
synced 2024-12-14 14:12:31 +00:00
cargo fmt
This commit is contained in:
parent
70aea2947b
commit
7e773d9f5c
1 changed files with 3 additions and 2 deletions
|
@ -54,7 +54,8 @@ impl Name {
|
||||||
return PathBuf::from(".");
|
return PathBuf::from(".");
|
||||||
}
|
}
|
||||||
|
|
||||||
let shared_components: PathBuf = self.path
|
let shared_components: PathBuf = self
|
||||||
|
.path
|
||||||
.components()
|
.components()
|
||||||
.zip(base_path.components())
|
.zip(base_path.components())
|
||||||
.take_while(|(target_component, base_component)| target_component == base_component)
|
.take_while(|(target_component, base_component)| target_component == base_component)
|
||||||
|
@ -88,7 +89,7 @@ impl Name {
|
||||||
icons.get(self),
|
icons.get(self),
|
||||||
self.relative_path(base_path).to_string_lossy()
|
self.relative_path(base_path).to_string_lossy()
|
||||||
),
|
),
|
||||||
DisplayOption::None => format!("{}{}", icons.get(self), self.path.to_string_lossy())
|
DisplayOption::None => format!("{}{}", icons.get(self), self.path.to_string_lossy()),
|
||||||
};
|
};
|
||||||
|
|
||||||
let elem = match self.file_type {
|
let elem = match self.file_type {
|
||||||
|
|
Loading…
Reference in a new issue