Skip to content

Commit

Permalink
Elide needless lifetimes
Browse files Browse the repository at this point in the history
Recommended by clippy 1.84
  • Loading branch information
dburgener committed Nov 1, 2024
1 parent 345b8aa commit 91809e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/internal_rep.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,7 @@ impl<'a> TryFrom<String> for Context<'a> {
}
}

impl<'a> fmt::Display for Context<'a> {
impl fmt::Display for Context<'_> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(
f,
Expand Down
10 changes: 5 additions & 5 deletions src/machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,27 +41,27 @@ impl Declared for ValidatedModule<'_> {
}
}

impl<'a> Annotated for &ValidatedModule<'a> {
impl Annotated for &ValidatedModule<'_> {
fn get_annotations(&self) -> std::collections::btree_set::Iter<AnnotationInfo> {
self.annotations.iter()
}
}

impl<'a> Eq for ValidatedModule<'a> {}
impl Eq for ValidatedModule<'_> {}

impl<'a> Ord for ValidatedModule<'a> {
impl Ord for ValidatedModule<'_> {
fn cmp(&self, other: &Self) -> Ordering {
self.name.cmp(&other.name)
}
}

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

impl<'a> PartialEq for ValidatedModule<'a> {
impl PartialEq for ValidatedModule<'_> {
fn eq(&self, other: &Self) -> bool {
self.name == other.name
}
Expand Down

0 comments on commit 91809e2

Please sign in to comment.