Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Added missing cfg_attr.
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgecarleitao committed Sep 9, 2021
1 parent 6ca4a6e commit 96851ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/temporal_conversions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,13 @@ fn utf8_to_timestamp_ns_impl<O: Offset, T: chrono::TimeZone>(
}

#[cfg(feature = "chrono-tz")]
#[cfg_attr(docsrs, doc(cfg(feature = "chrono-tz")))]
pub(crate) fn parse_offset_tz(tz: &str) -> Option<chrono_tz::Tz> {
tz.parse::<chrono_tz::Tz>().ok()
}

#[cfg(feature = "chrono-tz")]
#[cfg_attr(docsrs, doc(cfg(feature = "chrono-tz")))]
fn chrono_tz_utf_to_timestamp_ns<O: Offset>(
array: &Utf8Array<O>,
fmt: &str,
Expand Down

0 comments on commit 96851ef

Please sign in to comment.