diff options
Diffstat (limited to 'cli/http_cache.rs')
-rw-r--r-- | cli/http_cache.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/http_cache.rs b/cli/http_cache.rs index 7310c9e92..9cf2adc1a 100644 --- a/cli/http_cache.rs +++ b/cli/http_cache.rs @@ -4,7 +4,7 @@ /// as defined in RFC 7234 (https://tools.ietf.org/html/rfc7234). /// Currently it's a very simplified version to fulfill Deno needs /// at hand. -use crate::fs as deno_fs; +use crate::fs_util; use crate::http_util::HeadersMap; use deno_core::error::AnyError; use deno_core::serde_json; @@ -87,7 +87,7 @@ impl Metadata { pub fn write(&self, cache_filename: &Path) -> Result<(), AnyError> { let metadata_filename = Self::filename(cache_filename); let json = serde_json::to_string_pretty(self)?; - deno_fs::write_file(&metadata_filename, json, CACHE_PERM)?; + fs_util::write_file(&metadata_filename, json, CACHE_PERM)?; Ok(()) } @@ -161,7 +161,7 @@ impl HttpCache { .expect("Cache filename should have a parent dir"); self.ensure_dir_exists(parent_filename)?; // Cache content - deno_fs::write_file(&cache_filename, content, CACHE_PERM)?; + fs_util::write_file(&cache_filename, content, CACHE_PERM)?; let metadata = Metadata { url: url.to_string(), |