aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel Jankowski <daniel.jankowski@rub.de>2023-09-10 11:46:55 +0200
committerDaniel Jankowski <daniel.jankowski@rub.de>2023-09-10 11:46:55 +0200
commit0fa8c54f83bbd0372cffc8ec396f67a8596b10ac (patch)
tree9cb5fdb6fe03f776af5836db90be028def2c6293 /src
parentchore: move from unmaintained ansi_term to anstyle (diff)
downloadsl0pstatus-0fa8c54f83bbd0372cffc8ec396f67a8596b10ac.tar.gz
sl0pstatus-0fa8c54f83bbd0372cffc8ec396f67a8596b10ac.tar.xz
sl0pstatus-0fa8c54f83bbd0372cffc8ec396f67a8596b10ac.zip
chore: raise rust-toolchain + add components
Diffstat (limited to 'src')
-rw-r--r--src/config.rs1
-rw-r--r--src/main.rs7
2 files changed, 5 insertions, 3 deletions
diff --git a/src/config.rs b/src/config.rs
index b0c6f69..bf98727 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -152,7 +152,6 @@ impl ModuleConfig {
}
wid.process_click(state.clone(), click_pos - pos + offset);
-
}
rendered_output.len()
diff --git a/src/main.rs b/src/main.rs
index ef189ce..873abf8 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -66,8 +66,11 @@ impl ZellijPlugin for State {
let mut should_render = false;
match event {
Event::Mouse(mouse_info) => {
- self.module_config
- .handle_mouse_action(self.state.clone(), mouse_info, self.widget_map.clone());
+ self.module_config.handle_mouse_action(
+ self.state.clone(),
+ mouse_info,
+ self.widget_map.clone(),
+ );
}
Event::ModeUpdate(mode_info) => {
self.state.mode = mode_info;