Skip to content

Commit b87ec0d

Browse files
committed
fix cfg
1 parent bdc064d commit b87ec0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tokio/src/fs/write.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub async fn write(path: impl AsRef<Path>, contents: impl AsRef<[u8]>) -> io::Re
2727
let path = path.as_ref();
2828
let contents = crate::util::as_ref::upgrade(contents);
2929

30-
#[cfg(all(tokio_uring, feature = "rt", feature = "fs", target_os = "linux"))]
30+
#[cfg(all(tokio_unstable, feature = "io-uring", feature = "rt", feature = "fs", target_os = "linux"))]
3131
{
3232
let handle = crate::runtime::Handle::current();
3333
let driver_handle = handle.inner.driver().io();
@@ -39,7 +39,7 @@ pub async fn write(path: impl AsRef<Path>, contents: impl AsRef<[u8]>) -> io::Re
3939
write_spawn_blocking(path, contents).await
4040
}
4141

42-
#[cfg(all(tokio_uring, feature = "rt", feature = "fs", target_os = "linux"))]
42+
#[cfg(all(tokio_unstable, feature = "io-uring", feature = "rt", feature = "fs", target_os = "linux"))]
4343
async fn write_uring(path: &Path, mut buf: OwnedBuf) -> io::Result<()> {
4444
use crate::{fs::OpenOptions, runtime::driver::op::Op};
4545
use std::os::fd::OwnedFd;

0 commit comments

Comments
 (0)