Skip to content

Commit cf818d0

Browse files
small check fixes
1 parent 27e925c commit cf818d0

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

nova_vm/src/ecmascript/builtins/temporal/duration.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ impl TemporalDuration<'_> {
3636
pub(crate) const fn get_index(self) -> usize {
3737
self.0.into_index()
3838
}
39-
pub(crate) fn inner_duration(self, agent: &Agent) -> temporal_rs::Duration {
40-
agent[self].duration
41-
}
39+
// pub(crate) fn inner_duration(self, agent: &Agent) -> temporal_rs::Duration {
40+
// agent[self].duration
41+
// }
4242
}
4343

4444
bindable_handle!(TemporalDuration);
@@ -450,7 +450,7 @@ pub(crate) fn to_temporal_partial_duration_record<'gc>(
450450
/// It returns a new Temporal.Duration instance that is the
451451
/// negation of duration.
452452
pub(crate) fn create_negated_temporal_duration<'gc>(
453-
agent: &mut Agent,
453+
_agent: &mut Agent,
454454
item: temporal_rs::Duration,
455455
mut _gc: GcScope<'gc, '_>,
456456
) -> JsResult<'gc, temporal_rs::Duration> {

nova_vm/src/ecmascript/builtins/temporal/instant/instant_prototype.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ impl TemporalInstantPrototype {
419419
let options = args.get(0).bind(gc.nogc());
420420
let instant = this_value.bind(gc.nogc());
421421
// 2. Perform ? RequireInternalSlot(instant, [[InitializedTemporalInstant]]).
422-
let instant = require_internal_slot_temporal_instant(agent, instant.unbind(), gc.nogc())
422+
let _instant = require_internal_slot_temporal_instant(agent, instant.unbind(), gc.nogc())
423423
.unbind()?
424424
.bind(gc.nogc());
425425
// 3. Let resolvedOptions be ? GetOptionsObject(options).
@@ -428,15 +428,15 @@ impl TemporalInstantPrototype {
428428
.scope(agent, gc.nogc());
429429
// 4. NOTE: The following steps read options and perform independent validation in alphabetical order (GetTemporalFractionalSecondDigitsOption reads "fractionalSecondDigits" and GetRoundingModeOption reads "roundingMode").
430430
// 5. Let digits be ? GetTemporalFractionalSecondDigitsOption(resolvedOptions).
431-
let digits = get_temporal_fractional_second_digits_option(
431+
let _digits = get_temporal_fractional_second_digits_option(
432432
agent,
433433
resolved_options.get(agent),
434434
gc.reborrow(),
435435
)
436436
.unbind()?
437437
.bind(gc.nogc());
438438
// 6. Let roundingMode be ? GetRoundingModeOption(resolvedOptions, trunc).
439-
let rounding_mode = get_rounding_mode_option(
439+
let _rounding_mode = get_rounding_mode_option(
440440
agent,
441441
resolved_options.get(agent),
442442
RoundingMode::Trunc,

0 commit comments

Comments
 (0)