Skip to content

Commit

Permalink
duplicate derives on ArchivedDuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Awpteamoose committed Sep 8, 2023
1 parent 77d0bec commit 1aceba9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/duration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ macro_rules! try_opt {
/// This also allows for the negative duration; see individual methods for details.
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Debug, Hash)]
#[cfg_attr(feature = "rkyv", derive(Archive, Deserialize, Serialize))]
#[cfg_attr(feature = "rkyv", archive(derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Debug, Hash)))]
pub struct Duration {
secs: i64,
nanos: i32, // Always 0 <= nanos < NANOS_PER_SEC
Expand Down

0 comments on commit 1aceba9

Please sign in to comment.