Skip to content

Commit

Permalink
Fix extracting duration from string
Browse files Browse the repository at this point in the history
  • Loading branch information
WilfSilver committed Aug 18, 2023
1 parent f4031b8 commit 334b1ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/eww/src/window_arguments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ impl WindowArguments {
size: WindowArguments::extract_value_from_args::<Coords>("size", &mut args)?,
monitor: WindowArguments::extract_value_from_args::<MonitorIdentifier>("screen", &mut args)?,
anchor: WindowArguments::extract_value_from_args::<AnchorPoint>("anchor", &mut args)?,
duration: WindowArguments::extract_value_from_args::<std::time::Duration>("duration", &mut args)?,
duration: WindowArguments::extract_value_from_args::<DynVal>("duration", &mut args)?.map(|x| x.as_duration()).transpose()?,
args,
};

Expand Down

0 comments on commit 334b1ce

Please sign in to comment.