Skip to content

Commit

Permalink
Swap MappedLocalTime and LocalResult type alias
Browse files Browse the repository at this point in the history
  • Loading branch information
pitdicker committed Mar 27, 2024
1 parent ca3c3b6 commit 9e22e48
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/offset/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T> = LocalResult<T>;
#[derive(Clone, PartialEq, Debug, Copy, Eq, Hash)]
pub enum MappedLocalTime<T> {

/// Old name of [`MappedLocalTime`]. See that type for more documentation.
pub enum LocalResult<T> {
/// The local time maps to a single unique result.
Single(T),

Expand Down Expand Up @@ -141,9 +144,6 @@ impl<T> MappedLocalTime<T> {
}
}

/// The conversion result from the local time to the timezone-aware datetime types.
pub type LocalResult<T> = MappedLocalTime<T>;

#[allow(deprecated)]
impl<Tz: TimeZone> MappedLocalTime<Date<Tz>> {
/// Makes a new `DateTime` from the current date and given `NaiveTime`.
Expand Down

0 comments on commit 9e22e48

Please sign in to comment.