Skip to content

Commit

Permalink
Use inline const in TimeZoneRef::utc
Browse files Browse the repository at this point in the history
  • Loading branch information
x-hgg-x committed Sep 13, 2024
1 parent 13a386e commit c44da41
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/timezone/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,7 @@ impl<'a> TimeZoneRef<'a> {
/// Construct the time zone reference associated to UTC
#[inline]
pub const fn utc() -> Self {
const UTC: LocalTimeType = LocalTimeType::utc();
Self { transitions: &[], local_time_types: &[UTC], leap_seconds: &[], extra_rule: &None }
Self { transitions: &[], local_time_types: &[const { LocalTimeType::utc() }], leap_seconds: &[], extra_rule: &None }
}

/// Returns list of transitions
Expand Down

0 comments on commit c44da41

Please sign in to comment.