From 5bdb18f50e895150d354a58f8925dcaa8f422bcf Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Thu, 11 Apr 2024 14:28:41 -0400 Subject: [PATCH] Remove lifetime --- .../src/rules/flake8_bugbear/rules/loop_iterator_mutation.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ruff_linter/src/rules/flake8_bugbear/rules/loop_iterator_mutation.rs b/crates/ruff_linter/src/rules/flake8_bugbear/rules/loop_iterator_mutation.rs index f8735a9498561..d98d2c5b47aa9 100644 --- a/crates/ruff_linter/src/rules/flake8_bugbear/rules/loop_iterator_mutation.rs +++ b/crates/ruff_linter/src/rules/flake8_bugbear/rules/loop_iterator_mutation.rs @@ -24,7 +24,7 @@ use crate::fix::snippet::SourceCodeSnippet; /// /// ## Example /// ```python -/// items = [1,2,3] +/// items = [1, 2, 3] /// /// for item in items: /// print(item) @@ -135,7 +135,7 @@ impl<'a> LoopMutationsVisitor<'a> { } /// Handle, e.g., `del items[0]`. - fn handle_delete(&mut self, range: TextRange, targets: &'a [Expr]) { + fn handle_delete(&mut self, range: TextRange, targets: &[Expr]) { for target in targets { if let Expr::Subscript(ExprSubscript { range: _,