mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Fixed some clippy warnings in components/script and components/devtools (#33689)
Signed-off-by: jahielkomu <ktumuhairwe24@gmail.com>
This commit is contained in:
parent
53d24bb9ea
commit
028026bebe
4 changed files with 5 additions and 11 deletions
|
@ -185,8 +185,8 @@ impl StyleRuleActor {
|
||||||
css_text: "".into(), // TODO: Specify the css text
|
css_text: "".into(), // TODO: Specify the css text
|
||||||
declarations: style
|
declarations: style
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.filter_map(|decl| {
|
.map(|decl| {
|
||||||
Some(AppliedDeclaration {
|
AppliedDeclaration {
|
||||||
colon_offsets: vec![],
|
colon_offsets: vec![],
|
||||||
is_name_valid: true,
|
is_name_valid: true,
|
||||||
is_used: IsUsed { used: true },
|
is_used: IsUsed { used: true },
|
||||||
|
@ -196,7 +196,7 @@ impl StyleRuleActor {
|
||||||
priority: decl.priority,
|
priority: decl.priority,
|
||||||
terminator: "".into(),
|
terminator: "".into(),
|
||||||
value: decl.value,
|
value: decl.value,
|
||||||
})
|
}
|
||||||
})
|
})
|
||||||
.collect(),
|
.collect(),
|
||||||
href: node.base_uri.clone(),
|
href: node.base_uri.clone(),
|
||||||
|
|
|
@ -38,12 +38,6 @@ pub struct IdentityHub {
|
||||||
|
|
||||||
impl Default for IdentityHub {
|
impl Default for IdentityHub {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
Self::new()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl IdentityHub {
|
|
||||||
pub fn new() -> Self {
|
|
||||||
IdentityHub {
|
IdentityHub {
|
||||||
adapters: IdentityManager::new(),
|
adapters: IdentityManager::new(),
|
||||||
devices: IdentityManager::new(),
|
devices: IdentityManager::new(),
|
||||||
|
|
|
@ -241,7 +241,7 @@ impl ServiceWorkerGlobalScope {
|
||||||
runtime,
|
runtime,
|
||||||
from_devtools_receiver,
|
from_devtools_receiver,
|
||||||
closing,
|
closing,
|
||||||
Arc::new(IdentityHub::new()),
|
Arc::new(IdentityHub::default()),
|
||||||
),
|
),
|
||||||
task_queue: TaskQueue::new(receiver, own_sender.clone()),
|
task_queue: TaskQueue::new(receiver, own_sender.clone()),
|
||||||
own_sender,
|
own_sender,
|
||||||
|
|
|
@ -1417,7 +1417,7 @@ impl ScriptThread {
|
||||||
|
|
||||||
node_ids: Default::default(),
|
node_ids: Default::default(),
|
||||||
is_user_interacting: Cell::new(false),
|
is_user_interacting: Cell::new(false),
|
||||||
gpu_id_hub: Arc::new(IdentityHub::new()),
|
gpu_id_hub: Arc::new(IdentityHub::default()),
|
||||||
webgpu_port: RefCell::new(None),
|
webgpu_port: RefCell::new(None),
|
||||||
inherited_secure_context: state.inherited_secure_context,
|
inherited_secure_context: state.inherited_secure_context,
|
||||||
layout_factory,
|
layout_factory,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue