diff options
author | Alan Somers <asomers@gmail.com> | 2022-11-25 08:27:55 -0700 |
---|---|---|
committer | Alan Somers <asomers@gmail.com> | 2022-11-25 08:27:55 -0700 |
commit | 0ae109ddad121c53cb0dc315d43613fb5f4549cd (patch) | |
tree | 40718396d552252d7cdce2a961391fe9f6422251 /src/sys | |
parent | a75a3494cebde67764f523930b77ddceb902f57f (diff) | |
download | nix-0ae109ddad121c53cb0dc315d43613fb5f4549cd.zip |
Clippy cleanup with the latest nightly.
Diffstat (limited to 'src/sys')
-rw-r--r-- | src/sys/socket/mod.rs | 2 |
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; |