File tree 2 files changed +2
-6
lines changed
2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -57,10 +57,6 @@ pub fn parse_gregorian_from_str(input: &str) -> DateTime<Gregorian> {
57
57
/// ```
58
58
pub fn parse_zoned_gregorian_from_str ( input : & str ) -> CustomZonedDateTime < Gregorian > {
59
59
CustomZonedDateTime :: try_iso_from_str ( input)
60
- . or_else ( |e| {
61
- println ! ( "{input}" ) ;
62
- Err ( e)
63
- } )
64
60
. unwrap ( )
65
61
. to_calendar ( Gregorian )
66
62
}
Original file line number Diff line number Diff line change @@ -350,10 +350,10 @@ impl CustomZonedDateTime<AnyCalendar> {
350
350
///
351
351
/// // We know that America/Los_Angeles never used a -05:00 offset at any time of the year 2024
352
352
/// assert_eq!(
353
- /// CustomZonedDateTime::try_from_str("2024-08-08T12:08:19-05:00[America/Los_Angeles]").unwrap_err(),
353
+ /// CustomZonedDateTime::try_from_str("2024-08-08T12:08:19-05:00[America/Los_Angeles]").unwrap_err(),
354
354
/// ParseError::InvalidOffsetError
355
355
/// );
356
- ///
356
+ ///
357
357
/// // We don't know that America/Los_Angeles didn't use DST (-08:00) in August
358
358
/// assert!(
359
359
/// CustomZonedDateTime::try_from_str("2024-08-08T12:08:19-08:00[America/Los_Angeles]").is_ok()
You can’t perform that action at this time.
0 commit comments