aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/layout_debug.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2024-07-04 16:18:58 +0200
committerGitHub <noreply@github.com>2024-07-04 14:18:58 +0000
commit4b63043c6ae9ca9d51c6139101e294aaef379702 (patch)
treee88cdf1f58308a55dde90ab1d73f72752dcc0fa7 /components/layout/layout_debug.rs
parent99c1f886b8398e73e5af06135f6f357752e2cb16 (diff)
downloadservo-4b63043c6ae9ca9d51c6139101e294aaef379702.tar.gz
servo-4b63043c6ae9ca9d51c6139101e294aaef379702.zip
clippy: Fix warnings in `shared` and `config`, `fonts`, `layout`, and `layout_2020` components (#32674)
Diffstat (limited to 'components/layout/layout_debug.rs')
-rw-r--r--components/layout/layout_debug.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/layout/layout_debug.rs b/components/layout/layout_debug.rs
index 54d9c72a191..a50b92948a5 100644
--- a/components/layout/layout_debug.rs
+++ b/components/layout/layout_debug.rs
@@ -18,7 +18,7 @@ use serde_json::{to_string, to_value, Value};
use crate::flow::GetBaseFlow;
use crate::flow_ref::FlowRef;
-thread_local!(static STATE_KEY: RefCell<Option<State>> = RefCell::new(None));
+thread_local!(static STATE_KEY: RefCell<Option<State>> = const { RefCell::new(None) });
#[cfg(debug_assertions)]
static DEBUG_ID_COUNTER: AtomicUsize = AtomicUsize::new(0);