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
This commit is contained in:
electria 2026-08-29 22:03:27 -07:00
commit 717aabb3d6
Signed by: electria
SSH key fingerprint: SHA256:8LlB3ucPbBHqozqkhsNbaV5oG3SlzzqUj8FZDL6IPQs

View file

@ -364,7 +364,7 @@ impl State {
fn subscription(&self) -> Subscription<Message> {
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),