1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-07-01 02:31:04 +02:00

refactor: general tidy up

fix clippy warnings from latest stable rust
This commit is contained in:
Jake Stanger 2023-02-25 14:24:21 +00:00
parent ca4fe422f2
commit d84139a914
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61
5 changed files with 18 additions and 24 deletions

View file

@ -394,8 +394,6 @@ fn setup_module_common_options(container: EventBox, common: CommonConfig) {
let scroll_down_script = common.on_scroll_down.map(Script::new_polling);
container.connect_scroll_event(move |_, event| {
println!("{:?}", event.direction());
let script = match event.direction() {
ScrollDirection::Up => scroll_up_script.as_ref(),
ScrollDirection::Down => scroll_down_script.as_ref(),