diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2021-01-02 13:52:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-02 13:52:42 +0100 |
commit | 41a4a34aee57a4690e5c1b9ba54b27a7035bac37 (patch) | |
tree | 11d9ec87232947515e8c68488119dc1670833e68 /runtime/ops/fs.rs | |
parent | 88855b5d95be04747ec0ff67d8b33dfde3189641 (diff) |
upgrade: Rust 1.49.0 (#8955)
Diffstat (limited to 'runtime/ops/fs.rs')
-rw-r--r-- | runtime/ops/fs.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/runtime/ops/fs.rs b/runtime/ops/fs.rs index d6d7d7e78..d088880f7 100644 --- a/runtime/ops/fs.rs +++ b/runtime/ops/fs.rs @@ -1660,15 +1660,14 @@ async fn op_utime_async( args: Value, _zero_copy: BufVec, ) -> Result<Value, AnyError> { - let state = state.borrow(); - super::check_unstable(&state, "Deno.utime"); + super::check_unstable(&state.borrow(), "Deno.utime"); let args: UtimeArgs = serde_json::from_value(args)?; let path = PathBuf::from(&args.path); let atime = filetime::FileTime::from_unix_time(args.atime.0, args.atime.1); let mtime = filetime::FileTime::from_unix_time(args.mtime.0, args.mtime.1); - state.borrow::<Permissions>().check_write(&path)?; + state.borrow().borrow::<Permissions>().check_write(&path)?; tokio::task::spawn_blocking(move || { filetime::set_file_times(path, atime, mtime)?; |