From 38beb4a2e9e8eacfceef413c3a54fd56800510a7 Mon Sep 17 00:00:00 2001 From: Jacob Pratt Date: Wed, 17 Apr 2024 23:11:54 -0400 Subject: [PATCH] Update deprecation message for `Instant` --- time/src/instant.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/time/src/instant.rs b/time/src/instant.rs index 4c2a16f6e..9f71070aa 100644 --- a/time/src/instant.rs +++ b/time/src/instant.rs @@ -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);