Implement more traits

This commit is contained in:
hodasemi 2024-03-27 19:04:36 +01:00
parent 0dfb852d28
commit 2ddc27ee30

View file

@ -295,7 +295,7 @@ impl States {
pub fn future_state_change<'b>(
&self,
id: impl Into<Option<&'b str>>,
) -> Result<impl Fn() -> Result<()>> {
) -> Result<impl Fn() -> Result<()> + Clone + Send + Sync> {
let state = id.into().map(|id| self.get_state(id)).transpose()?;
let current_state = self.current_state.clone();
let gui_handler = if self.control_top_gui {