From f46df3e35940fc78163945eed33e58fafed0b06b Mon Sep 17 00:00:00 2001 From: linbingquan <695601626@qq.com> Date: Sun, 18 Dec 2022 06:20:15 +0800 Subject: chore: update to Rust 1.66.0 (#17078) --- core/module_specifier.rs | 2 +- core/runtime.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'core') diff --git a/core/module_specifier.rs b/core/module_specifier.rs index 3f329f53f..4727ff2cb 100644 --- a/core/module_specifier.rs +++ b/core/module_specifier.rs @@ -141,7 +141,7 @@ pub fn resolve_path( let path = current_dir() .map_err(|_| ModuleResolutionError::InvalidPath(path_str.into()))? .join(path_str); - let path = normalize_path(&path); + let path = normalize_path(path); Url::from_file_path(path.clone()) .map_err(|()| ModuleResolutionError::InvalidPath(path)) } diff --git a/core/runtime.rs b/core/runtime.rs index 3d37b13fa..a95ca0ca6 100644 --- a/core/runtime.rs +++ b/core/runtime.rs @@ -2116,7 +2116,7 @@ impl JsRuntime { let (promise_id, op_id, mut resp) = item; state.unrefed_ops.remove(&promise_id); state.op_state.borrow().tracker.track_async_completed(op_id); - args.push(v8::Integer::new(scope, promise_id as i32).into()); + args.push(v8::Integer::new(scope, promise_id).into()); args.push(match resp.to_v8(scope) { Ok(v) => v, Err(e) => OpResult::Err(OpError::new(&|_| "TypeError", e.into())) -- cgit v1.2.3