mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-12 00:00:12 +02:00
build: fix warnings in AS_FD_PROBE (#5677)
This commit is contained in:
+4
-3
@@ -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 _;
|
||||
}
|
||||
"#;
|
||||
|
||||
Reference in New Issue
Block a user