chore(defs): no stdio on wasm

This commit is contained in:
tamasfe 2022-07-26 14:51:22 +02:00
parent 6d4b5095d2
commit 7dcf6a5d7a
No known key found for this signature in database
GPG Key ID: 2373047D27CA4E47

View File

@ -75,7 +75,7 @@ impl<'e> Definitions<'e> {
/// ///
/// This function will create the directory path if it does not yet exist, /// This function will create the directory path if it does not yet exist,
/// it will also override any existing files as needed. /// it will also override any existing files as needed.
#[cfg(not(feature = "no_std"))] #[cfg(all(not(feature = "no_std"), not(target_family = "wasm")))]
pub fn write_to_dir(&self, path: impl AsRef<std::path::Path>) -> std::io::Result<()> { pub fn write_to_dir(&self, path: impl AsRef<std::path::Path>) -> std::io::Result<()> {
use std::fs; use std::fs;