From 717aabb3d687a00ed3c4c4d19ae97103a53067c1 Mon Sep 17 00:00:00 2001 From: electria Date: Sat, 29 Aug 2026 22:03:27 -0700 Subject: [PATCH] refactor: remove "move" from subscription closure it's explicitly not allowed to pass anything but a zero-sized closure, hence the use of "with" to add values as args as such, "move" makes no sense there --- src/app/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/mod.rs b/src/app/mod.rs index eae00ff..8f80fb4 100644 --- a/src/app/mod.rs +++ b/src/app/mod.rs @@ -364,7 +364,7 @@ impl State { fn subscription(&self) -> Subscription { event::listen() .with((self.db.is_some(), self.db_path_exists)) - .filter_map(move |((db_loaded, db_path_exists), event)| match event { + .filter_map(|((db_loaded, db_path_exists), event)| match event { iced::Event::Keyboard(keyboard::Event::KeyPressed { key, modifiers, .. }) => { match key.as_ref() { Key::Character("p" | "f" | "i") if !db_loaded => Some(Message::PickDb),