Skip to content

Commit

Permalink
Merge pull request #21 from jclulow/illumos
Browse files Browse the repository at this point in the history
fix illumos build after f224d37
  • Loading branch information
de-vri-es authored Nov 15, 2023
2 parents ed9aabf + fc9f076 commit 4ef900f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,10 @@ pub fn recv_msg<'a>(
#[allow(clippy::unnecessary_cast)]
let length = header.msg_controllen as usize;

let ancillary_reader = unsafe { AncillaryMessageReader::new(&mut ancillary_buffer[..length], truncated) };
let mut ancillary_reader = unsafe { AncillaryMessageReader::new(&mut ancillary_buffer[..length], truncated) };

Check warning on line 221 in src/sys.rs

View workflow job for this annotation

GitHub Actions / clippy

variable does not need to be mutable

warning: variable does not need to be mutable --> src/sys.rs:221:6 | 221 | let mut ancillary_reader = unsafe { AncillaryMessageReader::new(&mut ancillary_buffer[..length], truncated) }; | ----^^^^^^^^^^^^^^^^ | | | help: remove this `mut` | = note: `#[warn(unused_mut)]` on by default

#[cfg(any(target_os = "illumos", target_os = "solaris"))]
post_process_fds(ancillary);
post_process_fds(&mut ancillary_reader);
Ok((size, ancillary_reader))
}

Expand Down

0 comments on commit 4ef900f

Please sign in to comment.