From 41a4a34aee57a4690e5c1b9ba54b27a7035bac37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Sat, 2 Jan 2021 13:52:42 +0100 Subject: upgrade: Rust 1.49.0 (#8955) --- runtime/ops/fs.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'runtime/ops/fs.rs') 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 { - 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::().check_write(&path)?; + state.borrow().borrow::().check_write(&path)?; tokio::task::spawn_blocking(move || { filetime::set_file_times(path, atime, mtime)?; -- cgit v1.2.3