Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Awpteamoose committed Sep 8, 2023
1 parent bbf8c0a commit 254b590
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/duration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ 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)))]
#[cfg_attr(
feature = "rkyv",
archive_attr(derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Debug, Hash))

Check warning on line 57 in src/duration.rs

View check run for this annotation

Codecov / codecov/patch

src/duration.rs#L57

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

0 comments on commit 254b590

Please sign in to comment.