From 7afbd9cc0a9fd9220e336dae45705806d87e6f6e Mon Sep 17 00:00:00 2001 From: Redfire Date: Fri, 8 Dec 2023 18:53:57 +0800 Subject: [PATCH] Reformatted Code --- mozjs-sys/build.rs | 7 ++----- mozjs/tests/range.rs | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/mozjs-sys/build.rs b/mozjs-sys/build.rs index fed6f439af9..8385dcf3c38 100644 --- a/mozjs-sys/build.rs +++ b/mozjs-sys/build.rs @@ -28,11 +28,8 @@ const ENV_VARS: &'static [&'static str] = &[ "STLPORT_LIBS", ]; -const EXTRA_FILES: &'static [&'static str] = &[ - "makefile.cargo", - "src/jsglue.hpp", - "src/jsglue.cpp", -]; +const EXTRA_FILES: &'static [&'static str] = + &["makefile.cargo", "src/jsglue.hpp", "src/jsglue.cpp"]; /// Which version of moztools we expect #[cfg(windows)] diff --git a/mozjs/tests/range.rs b/mozjs/tests/range.rs index bf7ede84f66..a6407e545e9 100644 --- a/mozjs/tests/range.rs +++ b/mozjs/tests/range.rs @@ -1,9 +1,9 @@ use std::ptr; +use mozjs::glue::{JS_StringToBigInt, JS_StringToBigInt1}; use mozjs::jsapi::mozilla::Range; use mozjs::jsapi::{BigIntIsUint64, JS_NewGlobalObject}; use mozjs::jsapi::{JSAutoRealm, OnNewGlobalHookOption}; -use mozjs::glue::{JS_StringToBigInt, JS_StringToBigInt1}; use mozjs::rooted; use mozjs::rust::{JSEngine, RealmOptions, Runtime, SIMPLE_GLOBAL_CLASS};