Skip to content

Commit

Permalink
Remove the unncessary lifetime
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Sep 14, 2023
1 parent 7884eac commit 5707188
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/ruff/src/rule_selector.rs
Expand Up @@ -199,7 +199,7 @@ impl RuleSelector {
}

/// Returns rules matching the selector, taking into account preview options enabled.
pub fn rules<'a, 'b>(&'a self, preview: &'b PreviewOptions) -> impl Iterator<Item = Rule> + 'a {
pub fn rules<'a>(&'a self, preview: &PreviewOptions) -> impl Iterator<Item = Rule> + 'a {
let preview_enabled = preview.mode.is_enabled();
let preview_require_explicit = preview.require_explicit;
#[allow(deprecated)]
Expand Down

0 comments on commit 5707188

Please sign in to comment.