Fixed some clippy warnings in components/script and components/devtools (#33689)

Signed-off-by: jahielkomu <ktumuhairwe24@gmail.com>
This commit is contained in:
komuhangi 2024-10-07 19:32:48 +03:00 committed by GitHub
parent 53d24bb9ea
commit 028026bebe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 5 additions and 11 deletions

View file

@ -38,12 +38,6 @@ pub struct IdentityHub {
impl Default for IdentityHub {
fn default() -> Self {
Self::new()
}
}
impl IdentityHub {
pub fn new() -> Self {
IdentityHub {
adapters: IdentityManager::new(),
devices: IdentityManager::new(),

View file

@ -241,7 +241,7 @@ impl ServiceWorkerGlobalScope {
runtime,
from_devtools_receiver,
closing,
Arc::new(IdentityHub::new()),
Arc::new(IdentityHub::default()),
),
task_queue: TaskQueue::new(receiver, own_sender.clone()),
own_sender,

View file

@ -1417,7 +1417,7 @@ impl ScriptThread {
node_ids: Default::default(),
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),
inherited_secure_context: state.inherited_secure_context,
layout_factory,