Skip to content

Commit ba05e13

Browse files
committed
more requested changes
1 parent 6a3d236 commit ba05e13

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ exclude = ["/bors.toml", "/ci/*", "/.github/*"]
1414
edition = "2018"
1515

1616
[package.metadata.docs.rs]
17-
features = ["bytemuck", "std", "serde", "rkyv", "bytecheck", "rand"]
17+
features = ["bytemuck", "std", "serde", "rkyv/size_64", "bytecheck", "rand"]
1818

1919
[dependencies]
2020

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ pub use crate::crand::ComplexDistribution;
8181
#[repr(C)]
8282
#[cfg_attr(
8383
feature = "rkyv",
84-
derive(rkyv::Archive, rkyv::Serialize, rkyv::Deserialize,),
85-
archive(as = "Complex<T::Archived>")
84+
derive(rkyv::Archive, rkyv::Serialize, rkyv::Deserialize)
8685
)]
86+
#[cfg_attr(feature = "rkyv", archive(as = "Complex<T::Archived>"))]
8787
#[cfg_attr(feature = "bytecheck", derive(bytecheck::CheckBytes))]
8888
pub struct Complex<T> {
8989
/// Real portion of the complex number

0 commit comments

Comments
 (0)