aboutsummaryrefslogtreecommitdiffstats
path: root/components/shared/net
diff options
context:
space:
mode:
authoreri <eri@inventati.org>2024-03-12 18:22:05 +0100
committerGitHub <noreply@github.com>2024-03-12 17:22:05 +0000
commit21939c2ba89806aa548553f7d3d3b039fa41ae0b (patch)
treefb16fc3c4fc6a7a66c7a7a866a6f9565bb328014 /components/shared/net
parent4efebf1e6207a57d7e68f637ee3fe9ce34ee0fd0 (diff)
downloadservo-21939c2ba89806aa548553f7d3d3b039fa41ae0b.tar.gz
servo-21939c2ba89806aa548553f7d3d3b039fa41ae0b.zip
clippy: Fix warnings in `components/shared` (#31627)
* clippy: fix warnings in `components/shared` * fix: formatting derive * fix: rename new to default
Diffstat (limited to 'components/shared/net')
-rw-r--r--components/shared/net/request.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/shared/net/request.rs b/components/shared/net/request.rs
index 43a9fd15931..346614bc73e 100644
--- a/components/shared/net/request.rs
+++ b/components/shared/net/request.rs
@@ -207,6 +207,7 @@ impl RequestBody {
self.source == BodySource::Null
}
+ #[allow(clippy::len_without_is_empty)]
pub fn len(&self) -> Option<usize> {
self.total_bytes
}