mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-25 00:00:18 +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#"
|
const AS_FD_PROBE: &str = r#"
|
||||||
{
|
{
|
||||||
#![allow(unused_imports)]
|
#[allow(unused_imports)]
|
||||||
|
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
use std::os::unix::prelude::AsFd as _;
|
use std::os::unix::prelude::AsFd as _;
|
||||||
|
#[allow(unused_imports)]
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
use std::os::windows::prelude::AsSocket as _;
|
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 _;
|
use std::os::wasi::prelude::AsFd as _;
|
||||||
}
|
}
|
||||||
"#;
|
"#;
|
||||||
|
|||||||
Reference in New Issue
Block a user