chore: fix Windows specific clippy errors (#15212)

This commit is contained in:
David Sherret 2022-07-15 12:30:25 -04:00 committed by GitHub
parent ee0c0586b3
commit 635eed9373
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 91 additions and 58 deletions

View file

@ -5,6 +5,7 @@
/// constructed from a stdio handle; if the handle is null this causes a panic.
pub fn ensure_stdio_open() {
#[cfg(windows)]
// SAFETY: winapi calls
unsafe {
use std::mem::size_of;
use winapi::shared::minwindef::DWORD;