aboutsummaryrefslogtreecommitdiff
path: root/src/event
diff options
context:
space:
mode:
authorkrolxon <krolyxon@tutanota.com>2024-05-09 00:30:46 +0530
committerkrolxon <krolyxon@tutanota.com>2024-05-09 00:30:46 +0530
commit1187e4f0b5414ccf1d5a84b9ab0284c9cebbb9af (patch)
tree00dacce698c05606a51f731e08589d702399863d /src/event
parentcef5f734780b767301bae6928d106a6d48c8dff8 (diff)
remove cli mod, dependent methods
Diffstat (limited to 'src/event')
-rwxr-xr-xsrc/event/handler.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/event/handler.rs b/src/event/handler.rs
index 0978458..3663006 100755
--- a/src/event/handler.rs
+++ b/src/event/handler.rs
@@ -177,7 +177,7 @@ pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> {
app.queue_list.index as u32
} else {
app.queue_list.index += 1;
- (current + 1) as u32
+ current + 1
};
app.conn.conn.swap(current, next)?;
app.update_queue();
@@ -190,7 +190,7 @@ pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> {
app.queue_list.index as u32
} else {
app.queue_list.index -= 1;
- (current - 1) as u32
+ current - 1
};
app.conn.conn.swap(current, prev)?;
app.update_queue();