From 2080669943e79aba619bc80829172c696ec1f15c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E7=82=B3=E6=9D=83?= <695601626@qq.com> Date: Sun, 27 Aug 2023 12:04:12 +0800 Subject: chore: update to Rust 1.72 (#20258) As the title. --------- Co-authored-by: Matt Mastracci --- ext/ffi/static.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ext/ffi/static.rs') diff --git a/ext/ffi/static.rs b/ext/ffi/static.rs index ae095d5fc..8a6c147d0 100644 --- a/ext/ffi/static.rs +++ b/ext/ffi/static.rs @@ -10,7 +10,6 @@ use deno_core::op; use deno_core::serde_v8; use deno_core::v8; use deno_core::ResourceId; -use std::ffi::c_void; use std::ptr; #[op(v8)] @@ -147,7 +146,7 @@ pub fn op_ffi_get_static<'scope>( } NativeType::Pointer | NativeType::Function | NativeType::Buffer => { let external: v8::Local = - v8::External::new(scope, data_ptr as *mut c_void).into(); + v8::External::new(scope, data_ptr).into(); external.into() } NativeType::Struct(_) => { -- cgit v1.2.3