mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-10-21 11:16:29 +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