Skip to content

Commit 2f1f894

Browse files
committed
Fix rustfmt
1 parent 1c9b549 commit 2f1f894

File tree

1 file changed

+5
-2
lines changed
  • crates/numcodecs-wasm-guest/src

1 file changed

+5
-2
lines changed

crates/numcodecs-wasm-guest/src/lib.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,17 @@ pub mod bindings {
8080
/// ```
8181
macro_rules! export_codec {
8282
($codec:ty) => {
83+
#[cfg(target_arch = "wasm32")]
8384
const _: () = {
8485
type Codec = $codec;
8586

86-
#[cfg(target_arch = "wasm32")]
8787
$crate::bindings::export!(Codec with_types_in $crate::bindings);
88+
};
8889

90+
const _: () {
8991
const fn can_only_export_static_codec<T: $crate::numcodecs::StaticCodec>() {}
90-
can_only_export_static_codec::<Codec>()
92+
93+
can_only_export_static_codec::<$codec>()
9194
};
9295
};
9396
}

0 commit comments

Comments
 (0)