Skip to content

Commit

Permalink
Needed to rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
nekevss committed Jan 7, 2024
1 parent 2eea1c9 commit d729a59
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/temporal/src/components/duration/date.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
use crate::{
components::{
calendar::CalendarProtocol, duration::TimeDuration, Date, DateTime, Duration, ZonedDateTime,
calendar::CalendarProtocol, duration::TimeDuration, tz::TzProtocol, Date, DateTime,
Duration, ZonedDateTime,
},
options::{ArithmeticOverflow, TemporalRoundingMode, TemporalUnit},
utils, TemporalError, TemporalResult, NS_PER_DAY,
Expand Down Expand Up @@ -108,15 +109,15 @@ impl DateDuration {
/// Rounds the current `DateDuration` returning a tuple of the rounded `DateDuration` and
/// the `total` value of the smallest unit prior to rounding.
#[allow(clippy::type_complexity, clippy::let_and_return)]
pub fn round<C: CalendarProtocol>(
pub fn round<C: CalendarProtocol, Z: TzProtocol>(
&self,
additional_time: Option<TimeDuration>,
increment: f64,
unit: TemporalUnit,
rounding_mode: TemporalRoundingMode,
relative_targets: (
Option<&Date<C>>,
Option<&ZonedDateTime<C>>,
Option<&ZonedDateTime<C, Z>>,
Option<&DateTime<C>>,
),
context: &mut dyn Any,
Expand Down

0 comments on commit d729a59

Please sign in to comment.