Skip to content

Commit a566e08

Browse files
committed
fix
1 parent 77e22ad commit a566e08

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

components/datetime/tests/mock.rs

-4
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,6 @@ pub fn parse_gregorian_from_str(input: &str) -> DateTime<Gregorian> {
5757
/// ```
5858
pub fn parse_zoned_gregorian_from_str(input: &str) -> CustomZonedDateTime<Gregorian> {
5959
CustomZonedDateTime::try_iso_from_str(input)
60-
.or_else(|e| {
61-
println!("{input}");
62-
Err(e)
63-
})
6460
.unwrap()
6561
.to_calendar(Gregorian)
6662
}

components/timezone/src/ixdtf.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -350,10 +350,10 @@ impl CustomZonedDateTime<AnyCalendar> {
350350
///
351351
/// // We know that America/Los_Angeles never used a -05:00 offset at any time of the year 2024
352352
/// 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(),
354354
/// ParseError::InvalidOffsetError
355355
/// );
356-
///
356+
///
357357
/// // We don't know that America/Los_Angeles didn't use DST (-08:00) in August
358358
/// assert!(
359359
/// CustomZonedDateTime::try_from_str("2024-08-08T12:08:19-08:00[America/Los_Angeles]").is_ok()

0 commit comments

Comments
 (0)