Skip to content

Commit

Permalink
Remove lifetime
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Apr 11, 2024
1 parent 8fe1040 commit 5bdb18f
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -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)
Expand Down Expand Up @@ -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: _,
Expand Down

0 comments on commit 5bdb18f

Please sign in to comment.