Confusing deprecation message for time::Instant
#677
Labels
C-enhancement
Category: an enhancement with existing code
time::Instant
#677
time::Instant
was deprecated in 0.3.35:#650
The deprecation error message displayed by clippy is:
This is confusing advice, as the primary fix is to use
std::time::Instant
rather thantime::Instant
. It took me a while to figure this out.There are some additional extension methods defined in
time::ext::InstantExt
, but these won't be required by most users.I suggest that the error is changed to:
The text was updated successfully, but these errors were encountered: