Revert "use as_derf() instead of .map(~as_str())"

This function has been available since Rust 1.40.
This commit is contained in:
dvvvvvv 2020-04-11 18:58:35 +09:00 committed by Abin Simon
parent 366f0c3084
commit 8e709f0ad9

View file

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