From 334b1ce981aee1cfb1b571fa33c9732dbd499ae5 Mon Sep 17 00:00:00 2001 From: Wilf Silver Date: Fri, 18 Aug 2023 21:40:56 +0100 Subject: [PATCH] Fix extracting duration from string --- crates/eww/src/window_arguments.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/eww/src/window_arguments.rs b/crates/eww/src/window_arguments.rs index 819369a2..1eab653a 100644 --- a/crates/eww/src/window_arguments.rs +++ b/crates/eww/src/window_arguments.rs @@ -37,7 +37,7 @@ impl WindowArguments { size: WindowArguments::extract_value_from_args::("size", &mut args)?, monitor: WindowArguments::extract_value_from_args::("screen", &mut args)?, anchor: WindowArguments::extract_value_from_args::("anchor", &mut args)?, - duration: WindowArguments::extract_value_from_args::("duration", &mut args)?, + duration: WindowArguments::extract_value_from_args::("duration", &mut args)?.map(|x| x.as_duration()).transpose()?, args, };