Skip to content

Commit

Permalink
Update deprecation message for Instant
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpratt committed Apr 18, 2024
1 parent 3c3c546 commit 38beb4a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion time/src/instant.rs
Expand Up @@ -28,7 +28,10 @@ use crate::Duration;
///
/// This implementation allows for operations with signed [`Duration`]s, but is otherwise identical
/// to [`std::time::Instant`].
#[deprecated(since = "0.3.35", note = "import `time::ext::InstantExt` instead")]
#[deprecated(
since = "0.3.35",
note = "import `std::time::Instant` and `time::ext::InstantExt` instead"
)]
#[repr(transparent)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct Instant(pub StdInstant);
Expand Down

0 comments on commit 38beb4a

Please sign in to comment.