Fix iterator related clippy style lint violations (#36437)

Release Notes:

- N/A
This commit is contained in:
tidely 2025-08-19 11:06:35 +03:00 committed by Orual
parent 9501b48c15
commit 3a40d598e1
No known key found for this signature in database
13 changed files with 21 additions and 33 deletions

View file

@ -98,9 +98,7 @@ impl KeyContextView {
cx.notify();
});
let sub2 = cx.observe_pending_input(window, |this, window, cx| {
this.pending_keystrokes = window
.pending_input_keystrokes()
.map(|k| k.iter().cloned().collect());
this.pending_keystrokes = window.pending_input_keystrokes().map(|k| k.to_vec());
if this.pending_keystrokes.is_some() {
this.last_keystrokes.take();
}