summaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2022-11-25 08:27:55 -0700
committerAlan Somers <asomers@gmail.com>2022-11-25 08:27:55 -0700
commit0ae109ddad121c53cb0dc315d43613fb5f4549cd (patch)
tree40718396d552252d7cdce2a961391fe9f6422251 /src/sys
parenta75a3494cebde67764f523930b77ddceb902f57f (diff)
downloadnix-0ae109ddad121c53cb0dc315d43613fb5f4549cd.zip
Clippy cleanup with the latest nightly.
Diffstat (limited to 'src/sys')
-rw-r--r--src/sys/socket/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sys/socket/mod.rs b/src/sys/socket/mod.rs
index 37a4037c..a0702585 100644
--- a/src/sys/socket/mod.rs
+++ b/src/sys/socket/mod.rs
@@ -1727,6 +1727,8 @@ where
{
type Item = RecvMsg<'a, 'a, S>;
+ // The cast is not unnecessary on all platforms.
+ #[allow(clippy::unnecessary_cast)]
fn next(&mut self) -> Option<Self::Item> {
if self.current_index >= self.received {
return None;