Skip to content

Commit

Permalink
chore: rabbit's review
Browse files Browse the repository at this point in the history
  • Loading branch information
lklimek committed Oct 10, 2024
1 parent e5c94a6 commit 8c83814
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions proto/src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub trait ToMillis {
/// Panics when timestamp doesn't fit `u64` type
fn to_millis(&self) -> Result<u64, Error>;

#[deprecated = "use `to_millis` instead"]
#[deprecated(note = "use `to_millis` instead", since = "1.3.1")]
fn to_milis(&self) -> u64 {
self.to_millis()
.expect("cannot convert time to milliseconds")
Expand Down Expand Up @@ -44,8 +44,7 @@ pub trait FromMillis: Sized {
///
/// * millis - time since epoch, in milliseconds; must fit `i64` type
fn from_millis(millis: u64) -> Result<Self, Error>;

#[deprecated = "use `from_millis` instead"]
#[deprecated(note = "use `from_millis` instead", since = "1.3.1")]
fn from_milis(millis: u64) -> Self
where
Self: Sized,
Expand Down

0 comments on commit 8c83814

Please sign in to comment.