fs: make available to wasm under tokio_unstable (#6822)

This commit is contained in:
Nam Se Hyun 2024-09-11 21:55:07 +09:00 committed by GitHub
parent 91169992b2
commit d6213594ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 1 deletions

View File

@ -394,6 +394,7 @@ impl OpenOptions {
}
/// Returns a mutable reference to the underlying `std::fs::OpenOptions`
#[cfg(any(windows, unix))]
pub(super) fn as_inner_mut(&mut self) -> &mut StdOpenOptions {
&mut self.0
}

View File

@ -97,7 +97,6 @@ macro_rules! cfg_fs {
($($item:item)*) => {
$(
#[cfg(feature = "fs")]
#[cfg(not(target_os = "wasi"))]
#[cfg_attr(docsrs, doc(cfg(feature = "fs")))]
$item
)*