Skip to content

Commit 617bff9

Browse files
committed
Conditionally include ALIGN_TO
This const is only used under specific features, use `cfg` to conditionally build it in. Removes clippy warning.
1 parent f67081a commit 617bff9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

secp256k1-sys/src/types.rs

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ impl AlignedType {
4040
}
4141
}
4242

43+
#[cfg(all(feature = "std", not(feature = "external-symbols")))]
4344
pub(crate) const ALIGN_TO: usize = mem::align_of::<AlignedType>();
4445

4546

0 commit comments

Comments
 (0)