From 0533d475a52389ea0612b5543316bb571afc30ac Mon Sep 17 00:00:00 2001 From: Jubilee <46493976+workingjubilee@users.noreply.github.com> Date: Mon, 17 Jul 2023 12:29:04 -0700 Subject: [PATCH] Fix drop-on-copy lint (rust-lang/backtrace-rs#551) --- src/windows.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/windows.rs b/src/windows.rs index 9ec3ba99b..92c2b2e66 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; } } )*