diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-11-16 20:48:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-16 20:48:50 +0100 |
commit | 636af2850c90f6bf7005a270d95b68bc9718de75 (patch) | |
tree | 9ebffa025237f1ef42226e3168780beac2768b95 /cli/disk_cache.rs | |
parent | 8ab20a4582016542ac3d8140593f817ab920005f (diff) |
refactor(cli): rename fs module to fs_util (#8380)
This commit renames "fs" module in "cli/" to "fs_util". This is purely
cosmetic change; there were a few places which aliased "crate::fs"
to "deno_fs" which was very confusing with "fs" module in ops.
Diffstat (limited to 'cli/disk_cache.rs')
-rw-r--r-- | cli/disk_cache.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/disk_cache.rs b/cli/disk_cache.rs index 398085cc2..96a4ff41a 100644 --- a/cli/disk_cache.rs +++ b/cli/disk_cache.rs @@ -1,6 +1,6 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -use crate::fs as deno_fs; +use crate::fs_util; use crate::http_cache::url_to_filename; use deno_core::url::{Host, Url}; use std::ffi::OsStr; @@ -145,7 +145,7 @@ impl DiskCache { Some(ref parent) => self.ensure_dir_exists(parent), None => Ok(()), }?; - deno_fs::write_file(&path, data, crate::http_cache::CACHE_PERM) + fs_util::write_file(&path, data, crate::http_cache::CACHE_PERM) .map_err(|e| with_io_context(&e, format!("{:#?}", &path))) } } |