diff options
author | eri <eri@inventati.org> | 2024-03-12 18:22:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-12 17:22:05 +0000 |
commit | 21939c2ba89806aa548553f7d3d3b039fa41ae0b (patch) | |
tree | fb16fc3c4fc6a7a66c7a7a866a6f9565bb328014 /components/shared/net | |
parent | 4efebf1e6207a57d7e68f637ee3fe9ce34ee0fd0 (diff) | |
download | servo-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.rs | 1 |
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 } |