mirror of
https://github.com/lsd-rs/lsd
synced 2025-03-04 23:17:15 +00:00
cargo fmt
This commit is contained in:
parent
ace04d6b39
commit
9315eec59c
1 changed files with 4 additions and 1 deletions
|
@ -45,7 +45,10 @@ impl Name {
|
|||
}
|
||||
|
||||
pub fn file_name(&self) -> &str {
|
||||
self.path.file_name().and_then(OsStr::to_str).unwrap_or(&self.name)
|
||||
self.path
|
||||
.file_name()
|
||||
.and_then(OsStr::to_str)
|
||||
.unwrap_or(&self.name)
|
||||
}
|
||||
|
||||
fn relative_path<T: AsRef<Path> + Clone>(&self, base_path: T) -> PathBuf {
|
||||
|
|
Loading…
Add table
Reference in a new issue