diff --git a/toml-config/src/lib.rs b/toml-config/src/lib.rs index 9e4e503c..cbf12998 100644 --- a/toml-config/src/lib.rs +++ b/toml-config/src/lib.rs @@ -100,9 +100,7 @@ impl Action { SimpleCommand::SetFloatAboveFullscreen(bool) => { B::new(move || set_float_above_fullscreen(bool)) } - SimpleCommand::ToggleFloatAboveFullscreen => { - B::new(|| toggle_float_above_fullscreen()) - } + SimpleCommand::ToggleFloatAboveFullscreen => B::new(toggle_float_above_fullscreen), }, Action::Multi { actions } => { let actions: Vec<_> = actions.into_iter().map(|a| a.into_fn(state)).collect();