diff options
author | Alan Somers <asomers@gmail.com> | 2021-06-12 13:12:10 -0600 |
---|---|---|
committer | Alan Somers <asomers@gmail.com> | 2021-07-07 20:49:29 -0600 |
commit | 2d796eba380e8f4e5d935b6b356c9d401917b92d (patch) | |
tree | 7b344bb84c5e8a6957f46490e151551b09ce7f1b /src/sys/socket/mod.rs | |
parent | 6511d02414ec9dd4bcaa237336c5f74869e6c41a (diff) | |
download | nix-2d796eba380e8f4e5d935b6b356c9d401917b92d.zip |
Collapse Error into Errno
Now that Nix's weird error types are eliminated, there's no reason not
to simply use Errno as the Error type.
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 ff64b73f..c222bdd7 100644 --- a/src/sys/socket/mod.rs +++ b/src/sys/socket/mod.rs @@ -1572,7 +1572,7 @@ pub fn recvfrom(sockfd: RawFd, buf: &mut [u8]) &mut len as *mut socklen_t))? as usize; match sockaddr_storage_to_addr(&addr, len as usize) { - Err(Error(Errno::ENOTCONN)) => Ok((ret, None)), + Err(Errno::ENOTCONN) => Ok((ret, None)), Ok(addr) => Ok((ret, Some(addr))), Err(e) => Err(e) } |