From ab559b1a774dcc1e1bbf4dd692c02f70ed346df0 Mon Sep 17 00:00:00 2001 From: Jubilee Young Date: Mon, 17 Jul 2023 03:10:24 -0700 Subject: [PATCH] Fix drop-on-copy lint --- src/windows.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/windows.rs b/src/windows.rs index 9ec3ba99..92c2b2e6 100644 --- a/src/windows.rs +++ b/src/windows.rs @@ -177,9 +177,9 @@ macro_rules! ffi { assert_eq!($name as usize, winapi::$name as usize); let mut x: unsafe extern "system" fn($($args)*) -> $ret; x = $name; - drop(x); + let _ = x; x = winapi::$name; - drop(x); + let _ = x; } } )*