From 9e22e48d156d4c581e4f3d54cd8b2dcf77b5ae0a Mon Sep 17 00:00:00 2001 From: Paul Dicker Date: Wed, 27 Mar 2024 07:22:21 +0100 Subject: [PATCH] Swap `MappedLocalTime` and `LocalResult` type alias --- src/offset/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/offset/mod.rs b/src/offset/mod.rs index 89aafb61be..c8f9c59c20 100644 --- a/src/offset/mod.rs +++ b/src/offset/mod.rs @@ -54,8 +54,11 @@ pub use self::utc::Utc; /// the `MappedLocalTime` type to help deal with the result correctly. /// /// The type of `T` is usually a [`DateTime`] but may also be only an offset. +pub type MappedLocalTime = LocalResult; #[derive(Clone, PartialEq, Debug, Copy, Eq, Hash)] -pub enum MappedLocalTime { + +/// Old name of [`MappedLocalTime`]. See that type for more documentation. +pub enum LocalResult { /// The local time maps to a single unique result. Single(T), @@ -141,9 +144,6 @@ impl MappedLocalTime { } } -/// The conversion result from the local time to the timezone-aware datetime types. -pub type LocalResult = MappedLocalTime; - #[allow(deprecated)] impl MappedLocalTime> { /// Makes a new `DateTime` from the current date and given `NaiveTime`.