We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
path.as_os_str().hash()
path.hash()
1 parent 6e45c48 commit 08a19d7Copy full SHA for 08a19d7
src/cache.rs
@@ -44,7 +44,7 @@ impl<Fs: FileSystem> Cache<Fs> {
44
pub fn value(&self, path: &Path) -> CachedPath {
45
let hash = {
46
let mut hasher = FxHasher::default();
47
- path.hash(&mut hasher);
+ path.as_os_str().hash(&mut hasher);
48
hasher.finish()
49
};
50
if let Some(cache_entry) = self.paths.get((hash, path).borrow() as &dyn CacheKey) {
0 commit comments