From 6410f91bd1269ad3a50289a37506ec052a5e6dbc Mon Sep 17 00:00:00 2001 From: Hristo Venev Date: Mon, 30 Sep 2019 14:55:11 +0300 Subject: Don't use `#[serde(flatten)]`. It breaks the error line numbers. --- src/manager/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/manager') diff --git a/src/manager/mod.rs b/src/manager/mod.rs index 20ec061..8df4d23 100644 --- a/src/manager/mod.rs +++ b/src/manager/mod.rs @@ -139,10 +139,10 @@ impl Manager { .next .as_ref() .and_then(|next| { - if ts >= next.update_at { - Some(&next.config) + if ts >= next.0 { + Some(&next.1) } else { - t_cfg = t_cfg.min(next.update_at); + t_cfg = t_cfg.min(next.0); None } }) -- cgit