diff options
Diffstat (limited to 'cli/lsp/cache.rs')
-rw-r--r-- | cli/lsp/cache.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/lsp/cache.rs b/cli/lsp/cache.rs index f047e5fd4..df88254ee 100644 --- a/cli/lsp/cache.rs +++ b/cli/lsp/cache.rs @@ -8,6 +8,7 @@ use deno_core::ModuleSpecifier; use std::collections::HashMap; use std::fs; use std::path::Path; +use std::path::PathBuf; use std::sync::Arc; use std::time::SystemTime; @@ -97,7 +98,7 @@ impl CacheMetadata { Some(metadata) } - pub fn set_location(&mut self, location: &Path) { + pub fn set_location(&mut self, location: PathBuf) { self.cache = HttpCache::new(location); self.metadata.lock().clear(); } |