Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
lemunozm committed Oct 10, 2023
1 parent c3925be commit a1c4bae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/traits/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -653,11 +653,11 @@ impl<T: UnixTime> TimeAsSecs for T {}

/// Trait to convert into seconds
pub trait IntoSeconds {
fn into_seconds(&self) -> Seconds;
fn into_seconds(self) -> Seconds;
}

impl IntoSeconds for Millis {
fn into_seconds(&self) -> Seconds {
fn into_seconds(self) -> Seconds {
self / 1000
}
}

0 comments on commit a1c4bae

Please sign in to comment.