diff options
author | Bryant Mairs <bryantmairs@google.com> | 2017-12-16 09:37:25 -0800 |
---|---|---|
committer | Bryant Mairs <bryantmairs@google.com> | 2017-12-20 07:05:04 -0800 |
commit | b4a7983288ad53812ac84a7f6196071600d39ec7 (patch) | |
tree | cc0d158c6980ca4ff155b4058983510afd2c4574 /src/fcntl.rs | |
parent | f91586f4519a2ec1af9fddc7e667ba0b9a22d579 (diff) | |
download | nix-b4a7983288ad53812ac84a7f6196071600d39ec7.zip |
Remove unnecessary lifetime annotations
Diffstat (limited to 'src/fcntl.rs')
-rw-r--r-- | src/fcntl.rs | 3 |
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) => { |