Conditionally include ALIGN_TO
This const is only used under specific features, use `cfg` to conditionally build it in. Removes clippy warning.
This commit is contained in:
parent
f67081a01c
commit
617bff9df3
|
@ -40,6 +40,7 @@ impl AlignedType {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(all(feature = "std", not(feature = "external-symbols")))]
|
||||
pub(crate) const ALIGN_TO: usize = mem::align_of::<AlignedType>();
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue