]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #82179 - mbartlett21:patch-5, r=joshtriplett
authorYuki Okushi <jtitor@2k36.org>
Tue, 15 Jun 2021 08:40:03 +0000 (17:40 +0900)
committerGitHub <noreply@github.com>
Tue, 15 Jun 2021 08:40:03 +0000 (17:40 +0900)
commit1e14d397db323b037a22e6440f85293d938ce6a7
treec4481a5b6185f260c498ee8ebc2bb5b9cc4e56cf
parent2d2f1a5e88d6749edc3a51b4d68101e972d2ec25
parent7803955cae3dffb37c315e95764df8e949eea590
Rollup merge of #82179 - mbartlett21:patch-5, r=joshtriplett

Add functions `Duration::try_from_secs_{f32, f64}`

These functions allow constructing a Duration from a floating point value that could be out of range without panicking.

Tracking issue: #83400
library/core/src/time.rs
library/std/src/error.rs
library/std/src/lib.rs