Skip to content

Commit

Permalink
refactor: format & specific compilation condition scope
Browse files Browse the repository at this point in the history
  • Loading branch information
ethe committed Nov 14, 2024
1 parent 8038993 commit 4066629
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions examples/opfs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ pub async fn async_reader() {
assert_eq!(expected, read);
web_sys::console::log_1(&format!("read data: {:?} from parquet", read).into());
}

#[wasm_bindgen]
pub async fn remove_all_dir() {
let fs_options = FsOptions::Local;
Expand Down
1 change: 1 addition & 0 deletions fusio/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ opfs = [
tokio = ["async-stream", "dep:tokio"]
tokio-http = ["dep:reqwest", "http"]
tokio-uring = ["async-stream", "completion-based", "dep:tokio-uring", "no-send"]

[[bench]]
harness = false
name = "tokio"
Expand Down
4 changes: 2 additions & 2 deletions fusio/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ impl<W: Write> Write for &mut W {
}

#[cfg(test)]
#[cfg(not(target_arch = "wasm32"))]
mod tests {
use super::{Read, Write};
use crate::{buf::IoBufMut, Error, IoBuf};
Expand Down Expand Up @@ -322,6 +321,7 @@ mod tests {
}

#[allow(unused)]
#[cfg(not(target_arch = "wasm32"))]
async fn test_local_fs<S>(fs: S) -> Result<(), Error>
where
S: crate::fs::Fs,
Expand Down Expand Up @@ -395,7 +395,7 @@ mod tests {
write_and_read(File::from_std(write), File::from_std(read)).await;
}

#[cfg(feature = "tokio")]
#[cfg(all(feature = "tokio", not(target_arch = "wasm32")))]
#[tokio::test]
async fn test_tokio_fs() {
use crate::disk::TokioFs;
Expand Down

0 comments on commit 4066629

Please sign in to comment.