fix(lint): apply clippy suggestions

This commit is contained in:
Orhun Parmaksız 2022-12-18 23:48:22 +03:00
parent 451f752ce5
commit 44fef984cc
No known key found for this signature in database
GPG key ID: F83424824B3E4B90

View file

@ -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;