Use `try_from_secs_*` in `Duration::from_secs_*` functions.
`Duration::from_secs_{f32, f64}` now use the results from the non-panicking functions and unwrap it.
Showing
想要评论请 注册 或 登录
`Duration::from_secs_{f32, f64}` now use the results from the non-panicking functions and unwrap it.