Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Kijewski committed Oct 29, 2022
1 parent 4b3151a commit 4c18e40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tzdb/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ pub const TZ_NAMES: &[&str] = &crate::generated::TIME_ZONES_LIST;
#[cfg(feature = "local")]
#[cfg_attr(feature = "docsrs", doc(cfg(feature = "local")))]
pub fn local_tz() -> Option<TimeZoneRef<'static>> {
tz_by_name(&iana_time_zone::get_timezone().ok()?)
tz_by_name(iana_time_zone::get_timezone().ok()?)
}

#[cfg(all(test, feature = "by-name"))]
Expand Down

0 comments on commit 4c18e40

Please sign in to comment.