mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-12-06 12:27:08 +00:00
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