mirror of
https://github.com/lsd-rs/lsd
synced 2024-12-13 21:52:37 +00:00
Revert "use as_derf() instead of .map(~as_str())"
This function has been available since Rust 1.40.
This commit is contained in:
parent
366f0c3084
commit
8e709f0ad9
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ impl Name {
|
|||
}
|
||||
|
||||
pub fn extension(&self) -> Option<&str> {
|
||||
self.extension.as_deref()
|
||||
self.extension.as_ref().map(|string| string.as_str())
|
||||
}
|
||||
|
||||
pub fn file_type(&self) -> FileType {
|
||||
|
|
Loading…
Reference in a new issue