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

This commit is contained in:
Nam Se Hyun
2024-09-11 12:55:07 +00:00
committed by GitHub
parent 91169992b2
commit d6213594ca
2 changed files with 1 additions and 1 deletions
+1
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
}
-1
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
)*