mirror of
https://github.com/orhun/systeroid
synced 2024-10-15 03:42:18 +00:00
fix(lint): apply clippy suggestions
This commit is contained in:
parent
451f752ce5
commit
44fef984cc
|
@ -492,7 +492,7 @@ impl<'a> App<'a> {
|
|||
if let Some(input) = &self.input {
|
||||
if direction == Direction::Right {
|
||||
if let Some(cursor_position) = self.input_cursor.checked_sub(1) {
|
||||
self.input_cursor = cursor_position as u16;
|
||||
self.input_cursor = cursor_position;
|
||||
}
|
||||
} else if self.input_cursor != input.width() as u16 {
|
||||
self.input_cursor += 1;
|
||||
|
|
Loading…
Reference in a new issue