Fix iterator related clippy style lint violations (#36437)
Release Notes: - N/A
This commit is contained in:
@@ -280,7 +280,7 @@ impl ProjectDiff {
|
||||
fn button_states(&self, cx: &App) -> ButtonStates {
|
||||
let editor = self.editor.read(cx);
|
||||
let snapshot = self.multibuffer.read(cx).snapshot(cx);
|
||||
let prev_next = snapshot.diff_hunks().skip(1).next().is_some();
|
||||
let prev_next = snapshot.diff_hunks().nth(1).is_some();
|
||||
let mut selection = true;
|
||||
|
||||
let mut ranges = editor
|
||||
|
||||
Reference in New Issue
Block a user