Skip to content

Commit

Permalink
chore: Conform to new linting rules
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusGrass committed Dec 8, 2024
1 parent de34d51 commit af1d6be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pgwm-core/src/status/checker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ struct PackagedCheck<'a> {
position: usize,
}

impl<'a> PackagedCheck<'a> {
impl PackagedCheck<'_> {
fn update_check_time(&mut self) {
// Using this instead of SystemTime now avoids de-syncs between checks and unnecessary system calls
self.next_time = self
Expand All @@ -299,13 +299,13 @@ impl<'a> PackagedCheck<'a> {
}
}

impl<'a> PartialOrd<Self> for PackagedCheck<'a> {
impl PartialOrd<Self> for PackagedCheck<'_> {
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
Some(self.cmp(other))
}
}

impl<'a> Ord for PackagedCheck<'a> {
impl Ord for PackagedCheck<'_> {
fn cmp(&self, other: &Self) -> Ordering {
self.next_time.cmp(&other.next_time)
}
Expand Down

0 comments on commit af1d6be

Please sign in to comment.