Skip to content

Commit

Permalink
build: fix warnings in AS_FD_PROBE (#5677)
Browse files Browse the repository at this point in the history
  • Loading branch information
djc authored May 9, 2023
1 parent f21d596 commit f2d033e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tokio/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ 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 _;
#[cfg(target = "wasm32-wasi")]
#[allow(unused_imports)]
#[cfg(target_os = "wasi")]
use std::os::wasi::prelude::AsFd as _;
}
"#;
Expand Down

0 comments on commit f2d033e

Please sign in to comment.