Skip to content

Commit

Permalink
errs
Browse files Browse the repository at this point in the history
  • Loading branch information
robertbastian committed May 30, 2024
1 parent fc8dc0a commit 73ca7b4
Show file tree
Hide file tree
Showing 170 changed files with 1,514 additions and 2,539 deletions.
4 changes: 2 additions & 2 deletions components/calendar/examples/iso_date_manipulations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

icu_benchmark_macros::static_setup!();

use icu_calendar::{Calendar, CalendarError, Date, Iso};
use icu_calendar::{Calendar, Date, DateError, Iso};

const DATES_ISO: &[(i32, u8, u8)] = &[
(1970, 1, 1),
Expand Down Expand Up @@ -41,7 +41,7 @@ fn print<A: Calendar>(_date_input: &Date<A>) {
}
}

fn tuple_to_iso_date(date: (i32, u8, u8)) -> Result<Date<Iso>, CalendarError> {
fn tuple_to_iso_date(date: (i32, u8, u8)) -> Result<Date<Iso>, DateError> {
Date::try_new_iso_date(date.0, date.1, date.2)
}

Expand Down
4 changes: 2 additions & 2 deletions components/calendar/examples/iso_datetime_manipulations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

icu_benchmark_macros::static_setup!();

use icu_calendar::{Calendar, CalendarError, DateTime, Iso};
use icu_calendar::{Calendar, DateError, DateTime, Iso};

const DATETIMES_ISO: &[(i32, u8, u8, u8, u8, u8)] = &[
(1970, 1, 1, 3, 5, 12),
Expand Down Expand Up @@ -44,7 +44,7 @@ fn print<A: Calendar>(_datetime_input: &DateTime<A>) {
}
}

fn tuple_to_iso_datetime(date: (i32, u8, u8, u8, u8, u8)) -> Result<DateTime<Iso>, CalendarError> {
fn tuple_to_iso_datetime(date: (i32, u8, u8, u8, u8, u8)) -> Result<DateTime<Iso>, DateError> {
DateTime::try_new_iso_datetime(date.0, date.1, date.2, date.3, date.4, date.5)
}

Expand Down
Loading

0 comments on commit 73ca7b4

Please sign in to comment.