Skip to content

Commit 9e22e48

Browse files
committed
Swap MappedLocalTime and LocalResult type alias
1 parent ca3c3b6 commit 9e22e48

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/offset/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,11 @@ pub use self::utc::Utc;
5454
/// the `MappedLocalTime` type to help deal with the result correctly.
5555
///
5656
/// The type of `T` is usually a [`DateTime`] but may also be only an offset.
57+
pub type MappedLocalTime<T> = LocalResult<T>;
5758
#[derive(Clone, PartialEq, Debug, Copy, Eq, Hash)]
58-
pub enum MappedLocalTime<T> {
59+
60+
/// Old name of [`MappedLocalTime`]. See that type for more documentation.
61+
pub enum LocalResult<T> {
5962
/// The local time maps to a single unique result.
6063
Single(T),
6164

@@ -141,9 +144,6 @@ impl<T> MappedLocalTime<T> {
141144
}
142145
}
143146

144-
/// The conversion result from the local time to the timezone-aware datetime types.
145-
pub type LocalResult<T> = MappedLocalTime<T>;
146-
147147
#[allow(deprecated)]
148148
impl<Tz: TimeZone> MappedLocalTime<Date<Tz>> {
149149
/// Makes a new `DateTime` from the current date and given `NaiveTime`.

0 commit comments

Comments
 (0)