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 bbf8c0a
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_attr(derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Debug, Hash)))]

Check warning on line 55 in src/duration.rs

View check run for this annotation

Codecov / codecov/patch

src/duration.rs#L55

Added line #L55 was not covered by tests
pub struct Duration {
secs: i64,
nanos: i32, // Always 0 <= nanos < NANOS_PER_SEC
Expand Down

0 comments on commit bbf8c0a

Please sign in to comment.