Skip to content

Commit

Permalink
tokio: fix warnings in AS_FD_PROBE
Browse files Browse the repository at this point in the history
  • Loading branch information
djc committed May 9, 2023
1 parent 7430865 commit 2d0f8e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tokio/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ const CONST_MUTEX_NEW_PROBE: &str = r#"

const AS_FD_PROBE: &str = r#"
{
#![allow(unused_imports)]
#[allow(unused_imports)]
#[cfg(unix)]
use std::os::unix::prelude::AsFd as _;
#[allow(unused_imports)]
#[cfg(windows)]
use std::os::windows::prelude::AsSocket as _;
#[allow(unused_imports)]
#[cfg(target = "wasm32-wasi")]
use std::os::wasi::prelude::AsFd as _;
}
Expand Down

0 comments on commit 2d0f8e6

Please sign in to comment.