aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_runtime.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2022-11-22 00:24:52 -0500
committerJosh Matthews <josh@joshmatthews.net>2022-11-23 10:04:53 -0500
commitf76bb20c2e5779cf264e8e2ce90995b304a51505 (patch)
treeb639480aca418cb9e479e18fe35e9efa896d8f89 /components/script/script_runtime.rs
parent76edfce6a7252717f3a34614d503347bc1fe5ca0 (diff)
downloadservo-f76bb20c2e5779cf264e8e2ce90995b304a51505.tar.gz
servo-f76bb20c2e5779cf264e8e2ce90995b304a51505.zip
Format.
Diffstat (limited to 'components/script/script_runtime.rs')
-rw-r--r--components/script/script_runtime.rs13
1 files changed, 5 insertions, 8 deletions
diff --git a/components/script/script_runtime.rs b/components/script/script_runtime.rs
index e712fb8d90f..fe88b017934 100644
--- a/components/script/script_runtime.rs
+++ b/components/script/script_runtime.rs
@@ -52,8 +52,8 @@ use js::jsapi::StreamConsumer as JSStreamConsumer;
use js::jsapi::{BuildIdCharVector, DisableIncrementalGC, GCDescription, GCProgress};
use js::jsapi::{Dispatchable as JSRunnable, Dispatchable_MaybeShuttingDown};
use js::jsapi::{
- GCReason, GCOptions, JSGCStatus, JS_AddExtraGCRootsTracer,
- JS_RequestInterruptCallback, JS_SetGCCallback,
+ GCOptions, GCReason, JSGCStatus, JS_AddExtraGCRootsTracer, JS_RequestInterruptCallback,
+ JS_SetGCCallback,
};
use js::jsapi::{HandleObject, Heap, JobQueue};
use js::jsapi::{JSContext as RawJSContext, JSTracer, SetDOMCallbacks, SetGCSliceCallback};
@@ -793,13 +793,10 @@ unsafe extern "C" fn gc_slice_callback(
let desc: &GCDescription = &*desc;
let options = match desc.options_ {
GCOptions::Normal => "Normal",
- GCOptions::Shrink => "Shrink",
+ GCOptions::Shrink => "Shrink",
GCOptions::Shutdown => "Shutdown",
- };
- println!(
- " isZone={}, options={}",
- desc.isZone_, options
- );
+ };
+ println!(" isZone={}, options={}", desc.isZone_, options);
}
let _ = stdout().flush();
}