mirror of
https://github.com/lsd-rs/lsd
synced 2024-12-14 14:12:31 +00:00
use as_derf() instead of .map(~as_str())
This commit is contained in:
parent
9315eec59c
commit
366f0c3084
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ impl Name {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn extension(&self) -> Option<&str> {
|
pub fn extension(&self) -> Option<&str> {
|
||||||
self.extension.as_ref().map(|string| string.as_str())
|
self.extension.as_deref()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn file_type(&self) -> FileType {
|
pub fn file_type(&self) -> FileType {
|
||||||
|
|
Loading…
Reference in a new issue