Skip to content

Commit 0533d47

Browse files
Fix drop-on-copy lint (#551)
1 parent 89b2ccd commit 0533d47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/windows.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,9 @@ macro_rules! ffi {
177177
assert_eq!($name as usize, winapi::$name as usize);
178178
let mut x: unsafe extern "system" fn($($args)*) -> $ret;
179179
x = $name;
180-
drop(x);
180+
let _ = x;
181181
x = winapi::$name;
182-
drop(x);
182+
let _ = x;
183183
}
184184
}
185185
)*

0 commit comments

Comments
 (0)