aboutsummaryrefslogtreecommitdiff
path: root/src/manager
diff options
context:
space:
mode:
authorHristo Venev <hristo@venev.name>2019-09-30 14:55:11 +0300
committerHristo Venev <hristo@venev.name>2019-09-30 15:34:34 +0300
commit6410f91bd1269ad3a50289a37506ec052a5e6dbc (patch)
tree76645da508824f4835baef8aef91af7f80cbbcf4 /src/manager
parente7e12e4c27ba462a9f8e6ec15373d00c3d72bb24 (diff)
Don't use `#[serde(flatten)]`.
It breaks the error line numbers.
Diffstat (limited to 'src/manager')
-rw-r--r--src/manager/mod.rs6
1 files changed, 3 insertions, 3 deletions
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
}
})