refactor(handler): Created a macro to handle all table key events to reduce code duplication and make future implementations faster; Only refactored the Sonarr library to use it thus far

This commit is contained in:
Dark-Alex-17 committed 2024-12-07 19:20:13 -07:00
1 parent 23b1ca4371
commit 47b609369b
9 files changed
+547 -259

No files matched your search

+1
View File
@@ -16,6 +16,7 @@ mod handlers_tests;
#[cfg(test)]
#[path = "handler_test_utils.rs"]
pub mod handler_test_utils;
mod table_handler;
pub trait KeyEventHandler<'a, 'b, T: Into<Route> + Copy> {
fn handle_key_event(&mut self) {