diff options
Diffstat (limited to 'ext/ffi')
-rw-r--r-- | ext/ffi/dlfcn.rs | 2 | ||||
-rw-r--r-- | ext/ffi/static.rs | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/ext/ffi/dlfcn.rs b/ext/ffi/dlfcn.rs index ced64bec5..a10bbbe29 100644 --- a/ext/ffi/dlfcn.rs +++ b/ext/ffi/dlfcn.rs @@ -377,7 +377,7 @@ pub(crate) fn format_error(e: dlopen::Error, path: String) -> String { let path = OsStr::new(&path) .encode_wide() - .chain(Some(0).into_iter()) + .chain(Some(0)) .collect::<Vec<_>>(); let arguments = [path.as_ptr()]; 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::Value> = - v8::External::new(scope, data_ptr as *mut c_void).into(); + v8::External::new(scope, data_ptr).into(); external.into() } NativeType::Struct(_) => { |