Apply suggestions from code review

Co-authored-by: Ivan Enderlin <ivan@mnt.io>
This commit is contained in:
Syrus Akbary
2020-06-12 03:16:21 -07:00
committed by GitHub
parent a467d30506
commit baa1dec9b3

View File

@@ -67,12 +67,12 @@ impl FileSystemCache {
} }
} }
/// Set's the extension for this cached file. /// Set the extension for this cached file.
/// ///
/// This is needed for loading Native files from Windows, as otherwise /// This is needed for loading native files from Windows, as otherwise
/// loadding the library will fail (it requires to have a `.dll` extension) /// loadding the library will fail (it requires to have a `.dll` extension)
pub fn set_cache_extension(&mut self, ext: Option<impl AsRef<str>>) { pub fn set_cache_extension(&mut self, ext: Option<impl ToString>) {
self.ext = ext.map(|ext| ext.as_ref().to_string()); self.ext = ext.map(|ext| ext.to_string());
} }
} }