Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jedel1043 committed Dec 4, 2023
1 parent 22427d6 commit 89675dd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion boa_engine/src/builtins/temporal/duration/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ pub(crate) fn create_temporal_duration(
// 12. Set object.[[Microseconds]] to ℝ(𝔽(microseconds)).
// 13. Set object.[[Nanoseconds]] to ℝ(𝔽(nanoseconds)).

let obj = JsObject::from_proto_and_data(prototype, Duration::new( inner));
let obj = JsObject::from_proto_and_data(prototype, Duration::new(inner));
// 14. Return object.
Ok(obj)
}
Expand Down
5 changes: 1 addition & 4 deletions boa_engine/src/builtins/temporal/plain_month_day/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,7 @@ pub(crate) fn create_temporal_month_day(
// 6. Set object.[[ISODay]] to isoDay.
// 7. Set object.[[Calendar]] to calendar.
// 8. Set object.[[ISOYear]] to referenceISOYear.
let obj = JsObject::from_proto_and_data(
proto,
PlainMonthDay::new(inner),
);
let obj = JsObject::from_proto_and_data(proto, PlainMonthDay::new(inner));

// 9. Return object.
Ok(obj.into())
Expand Down
3 changes: 1 addition & 2 deletions boa_engine/src/builtins/temporal/plain_year_month/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,7 @@ pub(crate) fn create_temporal_year_month(
// 7. Set object.[[Calendar]] to calendar.
// 8. Set object.[[ISODay]] to referenceISODay.

let obj =
JsObject::from_proto_and_data(proto, PlainYearMonth::new(ym));
let obj = JsObject::from_proto_and_data(proto, PlainYearMonth::new(ym));

// 9. Return object.
Ok(obj.into())
Expand Down

0 comments on commit 89675dd

Please sign in to comment.