diff options
| author | troido <troido@protonmail.com> | 2020-04-01 16:48:24 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-04-01 16:48:24 +0200 |
| commit | 633cb7d5b2048324a13bedb43468a7f04a81a519 (patch) | |
| tree | 5541a261e9e65fa8b26f0bc521cb1bd16c7e6a0c /src/parameter.rs | |
| parent | a911b7fabbaac429efd1747c3b1e925f679752f9 (diff) | |
removed Sometime parameter
Diffstat (limited to 'src/parameter.rs')
| -rw-r--r-- | src/parameter.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/parameter.rs b/src/parameter.rs index a56dd23..829c5cf 100644 --- a/src/parameter.rs +++ b/src/parameter.rs @@ -3,8 +3,7 @@ use serde_json::{Value, json}; use crate::{ Template, components::item::ItemAction, - Pos, - Timestamp + Pos }; @@ -76,13 +75,6 @@ parameters!( Some((Template::from_json(item.get(0)?).ok()?, item.get(1)?.as_f64()?)) ).collect::<Option<Vec<(Template, f64)>>>()?) ({json!(v.iter().map(|(t, c)| (t.to_json(), *c)).collect::<Vec<(Value, f64)>>())}); - SomeTime (Option<Timestamp>) sometime, v - ( - serde_json::from_value::<Option<i64>>(v.clone()) - .ok()? - .map(|time| Timestamp(time)) - ) - (json!(v.map(|timestamp| timestamp.0))); ); |
