Skip to content

Commit

Permalink
Fix: Remove implementation of Instant for std::time::Instant
Browse files Browse the repository at this point in the history
The crate providing async runtime is responsible to provide an `Instant`
implementation.
  • Loading branch information
schreter authored and drmingdrmer committed Feb 11, 2024
1 parent c1cf8a8 commit eb2c58a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions openraft/src/instant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,3 @@ impl Instant for tokio::time::Instant {
tokio::time::Instant::now()
}
}

impl Instant for std::time::Instant {
#[inline]
fn now() -> Self {
Self::now()
}
}

0 comments on commit eb2c58a

Please sign in to comment.