Skip to content

Commit

Permalink
Make method ASN1DateTime::to_datetime public
Browse files Browse the repository at this point in the history
  • Loading branch information
chifflier committed Jan 28, 2022
1 parent 89d55dd commit 74addd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datetime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ impl ASN1DateTime {
}

#[cfg(feature = "datetime")]
pub(crate) fn to_datetime(&self) -> Result<OffsetDateTime> {
pub fn to_datetime(&self) -> Result<OffsetDateTime> {
use crate::Error;

self.to_time_datetime().map_err(|_| Error::InvalidDateTime)
Expand Down

0 comments on commit 74addd0

Please sign in to comment.