Skip to content

Commit

Permalink
Make Instant #[repr(transparent)]
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpratt committed Aug 17, 2021
1 parent e52e355 commit 12673bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/instant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ use crate::Duration;
/// This implementation allows for operations with signed [`Duration`]s, but is otherwise identical
/// to [`std::time::Instant`].
#[cfg_attr(__time_03_docs, doc(cfg(feature = "std")))]
#[repr(transparent)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct Instant(pub StdInstant);

Expand Down

0 comments on commit 12673bf

Please sign in to comment.