From 9b1f0c8ba3c8ca7a7207519889b6509bfc10370e Mon Sep 17 00:00:00 2001 From: David Sherret Date: Tue, 12 Oct 2021 09:58:04 -0400 Subject: chore: upgrade crates based on deno ast 0.3 (#12403) --- ext/ffi/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ext/ffi') diff --git a/ext/ffi/lib.rs b/ext/ffi/lib.rs index d2b0d24df..4b83070d3 100644 --- a/ext/ffi/lib.rs +++ b/ext/ffi/lib.rs @@ -294,7 +294,6 @@ pub(crate) fn format_error(e: dlopen::Error, path: String) -> String { use std::ffi::OsStr; use std::os::windows::ffi::OsStrExt; use winapi::shared::minwindef::DWORD; - use winapi::shared::ntdef::WCHAR; use winapi::shared::winerror::ERROR_INSUFFICIENT_BUFFER; use winapi::um::errhandlingapi::GetLastError; use winapi::um::winbase::FormatMessageW; @@ -314,7 +313,7 @@ pub(crate) fn format_error(e: dlopen::Error, path: String) -> String { let lang_id = MAKELANGID(LANG_SYSTEM_DEFAULT, SUBLANG_SYS_DEFAULT) as DWORD; - let mut buf = vec![0 as WCHAR; 500]; + let mut buf = vec![0; 500]; let path = OsStr::new(&path) .encode_wide() -- cgit v1.2.3