Jonas Bushart b276849ce1 Prevent panic when deserializing malformed Duration
std::time::Duration::new can panic. There is no alternative non-panicing constructor.
Check the panic condition beforehand and return an error instead of panicing.

Fixes #1933
2021-01-20 20:41:45 +01:00
..
2018-12-31 21:46:14 -05:00
2018-11-24 15:53:09 -08:00
2020-10-20 19:17:50 -07:00