aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/resource_thread.rs
diff options
context:
space:
mode:
authoreri <eri@inventati.org>2024-03-13 10:40:04 +0100
committerGitHub <noreply@github.com>2024-03-13 09:40:04 +0000
commit63527f56ca53ffad6be4d2552c8f7bb11bc945e2 (patch)
treeec85bf7f29eccf6646d8cbf550f70ec2631ad88d /components/net/resource_thread.rs
parent5ea05317757579afa7428f81b5688609341594b1 (diff)
downloadservo-63527f56ca53ffad6be4d2552c8f7bb11bc945e2.tar.gz
servo-63527f56ca53ffad6be4d2552c8f7bb11bc945e2.zip
clippy: Fix warnings in `components/net` (#31626)
* clippy: fix warnings in `components/net` * fix: review comments
Diffstat (limited to 'components/net/resource_thread.rs')
-rw-r--r--components/net/resource_thread.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/components/net/resource_thread.rs b/components/net/resource_thread.rs
index ea8896df242..dd67aa7a369 100644
--- a/components/net/resource_thread.rs
+++ b/components/net/resource_thread.rs
@@ -63,6 +63,7 @@ fn load_root_cert_store_from_file(file_path: String) -> io::Result<RootCertStore
}
/// Returns a tuple of (public, private) senders to the new threads.
+#[allow(clippy::too_many_arguments)]
pub fn new_resource_threads(
user_agent: Cow<'static, str>,
devtools_sender: Option<Sender<DevtoolsControlMsg>>,
@@ -102,6 +103,7 @@ pub fn new_resource_threads(
}
/// Create a CoreResourceThread
+#[allow(clippy::too_many_arguments)]
pub fn new_core_resource_thread(
user_agent: Cow<'static, str>,
devtools_sender: Option<Sender<DevtoolsControlMsg>>,
@@ -225,9 +227,8 @@ impl ResourceChannelManager {
loop {
for receiver in rx_set.select().unwrap().into_iter() {
// Handles case where profiler thread shuts down before resource thread.
- match receiver {
- ipc::IpcSelectionResult::ChannelClosed(..) => continue,
- _ => {},
+ if let ipc::IpcSelectionResult::ChannelClosed(..) = receiver {
+ continue;
}
let (id, data) = receiver.unwrap();
// If message is memory report, get the size_of of public and private http caches