mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +01:00
Fix more clippy (#32740)
This commit is contained in:
parent
4e1f623666
commit
f29dd64a7b
25 changed files with 72 additions and 90 deletions
|
@ -748,8 +748,8 @@ pub unsafe fn get_reports(cx: *mut RawJSContext, path_seg: String) -> Vec<Report
|
|||
reports
|
||||
}
|
||||
|
||||
thread_local!(static GC_CYCLE_START: Cell<Option<Instant>> = Cell::new(None));
|
||||
thread_local!(static GC_SLICE_START: Cell<Option<Instant>> = Cell::new(None));
|
||||
thread_local!(static GC_CYCLE_START: Cell<Option<Instant>> = const { Cell::new(None) });
|
||||
thread_local!(static GC_SLICE_START: Cell<Option<Instant>> = const { Cell::new(None) });
|
||||
|
||||
#[allow(unsafe_code)]
|
||||
unsafe extern "C" fn gc_slice_callback(
|
||||
|
@ -803,7 +803,7 @@ unsafe extern "C" fn debug_gc_callback(
|
|||
}
|
||||
|
||||
thread_local!(
|
||||
static THREAD_ACTIVE: Cell<bool> = Cell::new(true);
|
||||
static THREAD_ACTIVE: Cell<bool> = const { Cell::new(true) };
|
||||
);
|
||||
|
||||
pub(crate) fn runtime_is_alive() -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue