Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkdp committed Dec 19, 2024
1 parent ecaec19 commit dc3330b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ impl SymbolDeclarations {
}

/// Return an iterator over live declarations for this symbol.
pub(super) fn iter<'map, 'db>(&'map self) -> DeclarationIdIterator<'map> {
pub(super) fn iter(&self) -> DeclarationIdIterator {
DeclarationIdIterator {
declarations_iter: self.live_declarations.iter(),
visibility_constraints_iter: self.visibility_constraints.iter(),
Expand Down Expand Up @@ -218,7 +218,7 @@ impl SymbolBindings {
}

/// Iterate over currently live bindings for this symbol
pub(super) fn iter<'map>(&'map self) -> BindingIdWithConstraintsIterator<'map> {
pub(super) fn iter(&self) -> BindingIdWithConstraintsIterator {
BindingIdWithConstraintsIterator {
definitions: self.live_bindings.iter(),
constraints: self.constraints.iter(),
Expand Down Expand Up @@ -507,7 +507,7 @@ pub(super) struct BindingIdWithConstraintsIterator<'map> {
visibility_constraints_iter: VisibilityConstraintsIterator<'map>,
}

impl<'map, 'db> Iterator for BindingIdWithConstraintsIterator<'map> {
impl<'map> Iterator for BindingIdWithConstraintsIterator<'map> {
type Item = BindingIdWithConstraints<'map>;

fn next(&mut self) -> Option<Self::Item> {
Expand Down Expand Up @@ -554,7 +554,7 @@ pub(super) struct DeclarationIdIterator<'map> {
pub(crate) visibility_constraints_iter: VisibilityConstraintsIterator<'map>,
}

impl<'map> Iterator for DeclarationIdIterator<'map> {
impl Iterator for DeclarationIdIterator<'_> {
type Item = (ScopedDefinitionId, ScopedVisibilityConstraintId);

fn next(&mut self) -> Option<Self::Item> {
Expand Down

0 comments on commit dc3330b

Please sign in to comment.