Skip to content

Commit

Permalink
fixup! style: fix all unexpected cfgs
Browse files Browse the repository at this point in the history
  • Loading branch information
MingweiSamuel committed Jan 14, 2025
1 parent 95e9d54 commit 66bb3ef
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 19 deletions.
26 changes: 13 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions dfir_rs/tests/surface_examples.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ fn test_all() {
let examples_files = read_dir("examples/")
.unwrap()
.flat_map(Result::ok)
.filter(|entry| {
entry
.file_type()
.map_or(false, |file_type| file_type.is_file())
})
.filter(|entry| entry.file_type().is_ok_and(|file_type| file_type.is_file()))
.map(|entry| entry.file_name())
.map(|filename| filename.into_string().unwrap())
.filter(|filename| filename.starts_with("example_") && filename.ends_with(".rs"))
Expand Down
5 changes: 4 additions & 1 deletion multiplatform_test/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ impl Platform {
Platform::AsyncStd => quote! { #[async_std::test] },
Platform::Dfir => quote! { #[dfir_rs::test] },
Platform::Wasm => {
quote! { #[wasm_bindgen_test::wasm_bindgen_test] }
quote! {
#[allow(unexpected_cfgs, reason = "cfg(wasm_bindgen_unstable_test_coverage)")]
#[wasm_bindgen_test::wasm_bindgen_test]
}
}
Platform::EnvLogging | Platform::EnvTracing => Default::default(),
}
Expand Down

0 comments on commit 66bb3ef

Please sign in to comment.