Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
sffc committed Oct 18, 2024
1 parent 1c2b89d commit 1b726dd
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 31 deletions.
7 changes: 1 addition & 6 deletions components/datetime/src/combo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@

use core::marker::PhantomData;

use crate::{
format::neo::*,
neo_skeleton::*,
provider::neo::*,
scaffold::*,
};
use crate::{format::neo::*, neo_skeleton::*, provider::neo::*, scaffold::*};
use icu_provider::marker::NeverMarker;

/// A struct that supports formatting both a date and a time.
Expand Down
10 changes: 4 additions & 6 deletions components/datetime/src/fieldset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,12 @@ use crate::{
};
use icu_calendar::{
types::{
DayOfMonth, IsoHour, IsoMinute, IsoSecond, IsoWeekday, MonthInfo,
NanoSecond, YearInfo,
}, AnyCalendarKind, Date, Iso, Time,
DayOfMonth, IsoHour, IsoMinute, IsoSecond, IsoWeekday, MonthInfo, NanoSecond, YearInfo,
},
AnyCalendarKind, Date, Iso, Time,
};
use icu_provider::marker::NeverMarker;
use icu_timezone::{
TimeZoneBcp47Id, UtcOffset, ZoneVariant,
};
use icu_timezone::{TimeZoneBcp47Id, UtcOffset, ZoneVariant};

/// Maps the token `yes` to the given ident
macro_rules! yes_to {
Expand Down
11 changes: 4 additions & 7 deletions components/datetime/src/neo_marker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,6 @@
#[cfg(doc)]
use crate::neo::DateTimeFormatter;


use crate::{
format::neo::*,
neo_skeleton::*,
Expand All @@ -338,14 +337,12 @@ use crate::{
};
use icu_calendar::{
types::{
DayOfMonth, IsoHour, IsoMinute, IsoSecond, IsoWeekday, MonthInfo,
NanoSecond, YearInfo,
}, AnyCalendarKind, Date, Iso, Time,
DayOfMonth, IsoHour, IsoMinute, IsoSecond, IsoWeekday, MonthInfo, NanoSecond, YearInfo,
},
AnyCalendarKind, Date, Iso, Time,
};
use icu_provider::marker::NeverMarker;
use icu_timezone::{
TimeZoneBcp47Id, UtcOffset, ZoneVariant,
};
use icu_timezone::{TimeZoneBcp47Id, UtcOffset, ZoneVariant};

impl GetField<NeoComponents> for NeoDateSkeleton {
fn get_field(&self) -> NeoComponents {
Expand Down
7 changes: 2 additions & 5 deletions components/datetime/src/scaffold/calendar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,11 @@ use icu_calendar::cal::{
IslamicObservational, IslamicTabular, IslamicUmmAlQura, Japanese, JapaneseExtended, Persian,
};
use icu_calendar::{
any_calendar::IntoAnyCalendar,
AnyCalendar, AsCalendar, Calendar, Date, DateTime, Ref, Time,
any_calendar::IntoAnyCalendar, AnyCalendar, AsCalendar, Calendar, Date, DateTime, Ref, Time,
};
use icu_provider::marker::NeverMarker;
use icu_provider::prelude::*;
use icu_timezone::{
CustomZonedDateTime, TimeZoneInfo, TimeZoneModel, UtcOffset,
};
use icu_timezone::{CustomZonedDateTime, TimeZoneInfo, TimeZoneModel, UtcOffset};

/// A calendar that can be found in CLDR
///
Expand Down
10 changes: 4 additions & 6 deletions components/datetime/src/scaffold/fieldset_traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,13 @@ use crate::{
};
use icu_calendar::{
types::{
DayOfMonth, IsoHour, IsoMinute, IsoSecond, IsoWeekday, MonthInfo,
NanoSecond, YearInfo,
}, AnyCalendarKind, Date, Iso, Time,
DayOfMonth, IsoHour, IsoMinute, IsoSecond, IsoWeekday, MonthInfo, NanoSecond, YearInfo,
},
AnyCalendarKind, Date, Iso, Time,
};
use icu_provider::{marker::NeverMarker, prelude::*};
use icu_timezone::scaffold::IntoOption;
use icu_timezone::{
TimeZoneBcp47Id, UtcOffset, ZoneVariant,
};
use icu_timezone::{TimeZoneBcp47Id, UtcOffset, ZoneVariant};

/// Trait for components that can be formatted at runtime.
pub trait IsRuntimeComponents: UnstableSealed + GetField<NeoComponents> {}
Expand Down
3 changes: 2 additions & 1 deletion components/datetime/src/scaffold/get_field.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ use icu_calendar::{
types::{
DayOfMonth, DayOfYearInfo, IsoHour, IsoMinute, IsoSecond, IsoWeekday, MonthInfo,
NanoSecond, YearInfo,
}, AnyCalendarKind, AsCalendar, Calendar, Date, DateTime, Iso, Time,
},
AnyCalendarKind, AsCalendar, Calendar, Date, DateTime, Iso, Time,
};
use icu_timezone::{
CustomZonedDateTime, TimeZoneBcp47Id, TimeZoneInfo, TimeZoneModel, UtcOffset, ZoneVariant,
Expand Down

0 comments on commit 1b726dd

Please sign in to comment.