about summary refs log tree commit diff
path: root/library/std/src/time.rs
diff options
context:
space:
mode:
authorАртём Павлов [Artyom Pavlov] <newpavlov@gmail.com>2022-01-26 18:14:25 +0300
committerАртём Павлов [Artyom Pavlov] <newpavlov@gmail.com>2022-01-26 18:14:25 +0300
commite0bcf771d6e670988a3d4fdc785ecd5857916f10 (patch)
tree4b0d52ab19d5df71fd5b69f13784fee0aea40c04 /library/std/src/time.rs
parent788b1fe5b79a8b74215022f9df49b0eae68a50b9 (diff)
downloadrust-e0bcf771d6e670988a3d4fdc785ecd5857916f10.tar.gz
rust-e0bcf771d6e670988a3d4fdc785ecd5857916f10.zip
Improve Duration::try_from_secs_f32/64 accuracy by directly processing exponent and mantissa
Diffstat (limited to 'library/std/src/time.rs')
-rw-r--r--library/std/src/time.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/time.rs b/library/std/src/time.rs
index b6867e68df7..b4f9d8ea28d 100644
--- a/library/std/src/time.rs
+++ b/library/std/src/time.rs
@@ -45,7 +45,7 @@ use crate::sys_common::FromInner;
 pub use core::time::Duration;
 
 #[unstable(feature = "duration_checked_float", issue = "83400")]
-pub use core::time::FromSecsError;
+pub use core::time::FromFloatSecsError;
 
 /// A measurement of a monotonically nondecreasing clock.
 /// Opaque and useful only with [`Duration`].