diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-07-13 21:34:54 +0000 |
---|---|---|
committer | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-07-13 21:34:54 +0000 |
commit | 96ae786550c983eb82b4c060fd323c4855fbb311 (patch) | |
tree | 606b541c9d842fd759c5978a9efa499dc4c4feee /src/sys/socket/mod.rs | |
parent | 4978a382ee343108bf89173704c030f7cdf12a38 (diff) | |
parent | 2373ac817f331991d12dd0d1bccb20bb69300f6e (diff) | |
download | nix-96ae786550c983eb82b4c060fd323c4855fbb311.zip |
Merge #1095
1095: Fix warnings on Rust 1.37.0 r=asomers a=asomers
* 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)
* Test with nightly again
Co-authored-by: Alan Somers <asomers@gmail.com>
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 d3cbdaac..1c12c5f8 100644 --- a/src/sys/socket/mod.rs +++ b/src/sys/socket/mod.rs @@ -895,7 +895,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() }; |