fix: address clippy warning about match single binding

pull/13821/head
cor 2025-06-23 15:17:22 +02:00
parent 395371db51
commit 5af123a4d9
No known key found for this signature in database
1 changed files with 6 additions and 9 deletions

View File

@ -1588,8 +1588,7 @@ impl Component for EditorView {
}
fn cursor(&self, _area: Rect, editor: &Editor) -> (Option<Position>, CursorKind) {
match editor.cursor() {
(pos, kind) => {
let (pos, kind) = editor.cursor();
if self.terminal_focused {
(pos, kind)
} else {
@ -1597,8 +1596,6 @@ impl Component for EditorView {
(pos, CursorKind::Underline)
}
}
}
}
}
fn canonicalize_key(key: &mut KeyEvent) {