Skip to content

Commit

Permalink
Fix drop-on-copy lint (#551)
Browse files Browse the repository at this point in the history
  • Loading branch information
workingjubilee committed Jul 17, 2023
1 parent 89b2ccd commit 0533d47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
)*
Expand Down

0 comments on commit 0533d47

Please sign in to comment.