Skip to content

Commit c6e4163

Browse files
committed
bit of cleanup
1 parent 887d884 commit c6e4163

File tree

1 file changed

+4
-12
lines changed
  • nova_vm/src/ecmascript/builtins/temporal

1 file changed

+4
-12
lines changed

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

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -52,38 +52,30 @@ impl BuiltinIntrinsicConstructor for TemporalInstantConstructor {
5252
struct TemporalInstantFrom;
5353
impl Builtin for TemporalInstantFrom {
5454
const NAME: String<'static> = BUILTIN_STRING_MEMORY.from;
55-
5655
const LENGTH: u8 = 1;
57-
5856
const BEHAVIOUR: Behaviour = Behaviour::Regular(TemporalInstantConstructor::from);
5957
}
6058

6159
struct TemporalInstantFromEpochMilliseconds;
6260
impl Builtin for TemporalInstantFromEpochMilliseconds {
6361
const NAME: String<'static> = BUILTIN_STRING_MEMORY.fromEpochMilliseconds;
64-
6562
const LENGTH: u8 = 1;
66-
6763
const BEHAVIOUR: Behaviour =
6864
Behaviour::Regular(TemporalInstantConstructor::from_epoch_milliseconds);
6965
}
7066

7167
struct TemporalInstantFromEpochNanoseconds;
7268
impl Builtin for TemporalInstantFromEpochNanoseconds {
7369
const NAME: String<'static> = BUILTIN_STRING_MEMORY.fromEpochNanoseconds;
74-
7570
const LENGTH: u8 = 1;
76-
7771
const BEHAVIOUR: Behaviour =
7872
Behaviour::Regular(TemporalInstantConstructor::from_epoch_nanoseconds);
7973
}
8074

8175
struct TemporalInstantCompare;
8276
impl Builtin for TemporalInstantCompare {
8377
const NAME: String<'static> = BUILTIN_STRING_MEMORY.compare;
84-
8578
const LENGTH: u8 = 2;
86-
8779
const BEHAVIOUR: Behaviour = Behaviour::Regular(TemporalInstantConstructor::compare);
8880
}
8981

@@ -141,7 +133,7 @@ impl TemporalInstantConstructor {
141133
/// ### [8.2.2 Temporal.Instant.from ( item )](https://tc39.es/proposal-temporal/#sec-temporal.instant.from)
142134
fn from<'gc>(
143135
agent: &mut Agent,
144-
_this_value: Value,
136+
_: Value,
145137
args: ArgumentsList,
146138
gc: GcScope<'gc, '_>,
147139
) -> JsResult<'gc, Value<'gc>> {
@@ -158,7 +150,7 @@ impl TemporalInstantConstructor {
158150
/// ### [8.2.3 Temporal.Instant.fromEpochMilliseconds ( epochMilliseconds )](https://tc39.es/proposal-temporal/#sec-temporal.instant.fromepochmilliseconds)
159151
fn from_epoch_milliseconds<'gc>(
160152
agent: &mut Agent,
161-
_this_value: Value,
153+
_: Value,
162154
args: ArgumentsList,
163155
mut gc: GcScope<'gc, '_>,
164156
) -> JsResult<'gc, Value<'gc>> {
@@ -200,7 +192,7 @@ impl TemporalInstantConstructor {
200192
/// [8.2.4 Temporal.Instant.fromEpochNanoseconds ( epochNanoseconds )] (https://tc39.es/proposal-temporal/#sec-temporal.instant.fromepochnanoseconds)
201193
fn from_epoch_nanoseconds<'gc>(
202194
agent: &mut Agent,
203-
_this_value: Value,
195+
_: Value,
204196
arguments: ArgumentsList,
205197
mut gc: GcScope<'gc, '_>,
206198
) -> JsResult<'gc, Value<'gc>> {
@@ -234,7 +226,7 @@ impl TemporalInstantConstructor {
234226
/// ### [8.2.5 Temporal.Instant.compare ( one, two )](https://tc39.es/proposal-temporal/#sec-temporal.instant.compare)
235227
fn compare<'gc>(
236228
agent: &mut Agent,
237-
_this_value: Value,
229+
_: Value,
238230
args: ArgumentsList,
239231
mut gc: GcScope<'gc, '_>,
240232
) -> JsResult<'gc, Value<'gc>> {

0 commit comments

Comments
 (0)