cargo fmt

This commit is contained in:
dvvvvvv 2020-02-04 21:20:03 +09:00 committed by Abin Simon
parent 70aea2947b
commit 7e773d9f5c

View file

@ -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 {