From 3cca8ad9bc1eefa46162fb3e7c80babb93a1d030 Mon Sep 17 00:00:00 2001 From: lalvarezt Date: Wed, 23 Jul 2025 13:01:43 +0200 Subject: [PATCH] refactor(bindings): fix formatting issues --- television/channels/entry.rs | 3 +-- television/config/keybindings.rs | 11 ++++++++--- television/config/mod.rs | 4 +--- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/television/channels/entry.rs b/television/channels/entry.rs index 4c3d455..607ca12 100644 --- a/television/channels/entry.rs +++ b/television/channels/entry.rs @@ -1,6 +1,5 @@ use crate::{ - channels::prototypes::Template, - event::Key, + channels::prototypes::Template, event::Key, screen::result_item::ResultItem, }; use devicons::FileIcon; diff --git a/television/config/keybindings.rs b/television/config/keybindings.rs index 201130d..95a63be 100644 --- a/television/config/keybindings.rs +++ b/television/config/keybindings.rs @@ -11,7 +11,6 @@ use std::ops::{Deref, DerefMut}; use std::str::FromStr; use tracing::{debug, trace}; - /// Generic bindings structure that can map any key type to actions /// Generic bindings structure that maps any key type to actions. /// @@ -802,7 +801,10 @@ where while let Some((key_str, raw_value)) = map.next_entry::()? { - trace!("Processing binding: key='{}', value={:?}", key_str, raw_value); + trace!( + "Processing binding: key='{}', value={:?}", + key_str, raw_value + ); let key = K::from_str(&key_str).map_err(|e| { debug!("Failed to parse key '{}': {}", key_str, e); Error::custom(e) @@ -823,7 +825,10 @@ where debug!("Failed to deserialize actions for key '{}': {}", key_str, e); Error::custom(e) })?; - trace!("Binding key '{}' to actions: {:?}", key_str, actions); + trace!( + "Binding key '{}' to actions: {:?}", + key_str, actions + ); bindings.insert(key, actions); } } diff --git a/television/config/mod.rs b/television/config/mod.rs index 359604b..eb6cd00 100644 --- a/television/config/mod.rs +++ b/television/config/mod.rs @@ -14,9 +14,7 @@ use std::{ }; use tracing::{debug, warn}; -pub use keybindings::{ - EventBindings, EventType, KeyBindings, merge_bindings, -}; +pub use keybindings::{EventBindings, EventType, KeyBindings, merge_bindings}; pub use themes::Theme; pub use ui::UiConfig;