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:
parent
6695bc4fb9
commit
717aabb3d6
1 changed files with 1 additions and 1 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in a new issue