diff options
author | Alan Somers <asomers@gmail.com> | 2019-07-02 13:39:25 -0600 |
---|---|---|
committer | Alan Somers <asomers@gmail.com> | 2019-07-13 15:05:08 -0600 |
commit | c156af5a90e89291d4c540610549c3132d884661 (patch) | |
tree | 9c4d25b5b9888f1d8993f979a5d0ed5a06270335 /src/sys/socket/mod.rs | |
parent | 5e463aa51f0e644d54c21f0db2effa4b757f982a (diff) | |
download | nix-c156af5a90e89291d4c540610549c3132d884661.zip |
Fix warnings on Rust 1.37.0
* Replace obsolete range syntax "..." with inclusive range "..="
* Use dyn Trait syntax instead of Box<Trait>
* Raise MSRV to 1.27.0 (for dyn Trait syntax)
* Raise MSRV to 1.31.0 (because of rand)
tempfile pulls in rand, and rand pulls in fuchsia-cprng, which requires
1.31.0. Why rand pulls in fuchsia-cprng I don't know. It's specified
as a target-specific dependency, but Cargo tries to build it anyway
(only on Linux, not on FreeBSD or OSX). A bug in Cargo 1.27.0?
Diffstat (limited to 'src/sys/socket/mod.rs')
-rw-r--r-- | src/sys/socket/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sys/socket/mod.rs b/src/sys/socket/mod.rs index 0e27216f..d651b259 100644 --- a/src/sys/socket/mod.rs +++ b/src/sys/socket/mod.rs @@ -893,7 +893,7 @@ pub fn sendmsg(fd: RawFd, iov: &[IoVec<&[u8]>], cmsgs: &[ControlMessage], /// # References /// [recvmsg(2)](http://pubs.opengroup.org/onlinepubs/9699919799/functions/recvmsg.html) pub fn recvmsg<'a>(fd: RawFd, iov: &[IoVec<&mut [u8]>], - cmsg_buffer: Option<&'a mut CmsgBuffer>, + cmsg_buffer: Option<&'a mut dyn CmsgBuffer>, flags: MsgFlags) -> Result<RecvMsg<'a>> { let mut address: sockaddr_storage = unsafe { mem::uninitialized() }; |