summaryrefslogtreecommitdiff
path: root/src/fcntl.rs
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2017-12-20 15:07:44 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2017-12-20 15:07:44 +0000
commitdad777010547d04f32e21af131d223061f3821f2 (patch)
tree83caae312da5c8c4e2736f1e2da6e5382dc53e1d /src/fcntl.rs
parent5d50acaa806b0b0cc6c04d26232fc6a6f10d18a3 (diff)
parent8db68be6ba9c25c0955f4febeb78b31030ba7603 (diff)
downloadnix-dad777010547d04f32e21af131d223061f3821f2.zip
Merge #818
818: Clippy cleanup r=Susurrus a=Susurrus Various fixes for errors and warnings pointed out by clippy.
Diffstat (limited to 'src/fcntl.rs')
-rw-r--r--src/fcntl.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fcntl.rs b/src/fcntl.rs
index 5abf65ac..fa96491f 100644
--- a/src/fcntl.rs
+++ b/src/fcntl.rs
@@ -152,8 +152,7 @@ pub fn openat<P: ?Sized + NixPath>(dirfd: RawFd, path: &P, oflag: OFlag, mode: M
Errno::result(fd)
}
-fn wrap_readlink_result<'a>(buffer: &'a mut[u8], res: ssize_t)
- -> Result<&'a OsStr> {
+fn wrap_readlink_result(buffer: &mut[u8], res: ssize_t) -> Result<&OsStr> {
match Errno::result(res) {
Err(err) => Err(err),
Ok(len) => {