diff --git a/src/cache.rs b/src/cache.rs index e0cf1cc0..5ea0a1ae 100644 --- a/src/cache.rs +++ b/src/cache.rs @@ -44,7 +44,7 @@ impl Cache { pub fn value(&self, path: &Path) -> CachedPath { let hash = { let mut hasher = FxHasher::default(); - path.hash(&mut hasher); + path.as_os_str().hash(&mut hasher); hasher.finish() }; if let Some(cache_entry) = self.paths.get((hash, path).borrow() as &dyn CacheKey) {