mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
clippy: Fix warnings in shared
and config
, fonts
, layout
, and layout_2020
components (#32674)
This commit is contained in:
parent
99c1f886b8
commit
4b63043c6a
20 changed files with 72 additions and 78 deletions
|
@ -19,7 +19,7 @@ use serde_json::{to_string, to_value, Value};
|
|||
use crate::flow::BoxTree;
|
||||
use crate::fragment_tree::FragmentTree;
|
||||
|
||||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue