Skip to content

Commit 1c267ca

Browse files
committed
Clippy: remove an unused lifetime parameter
1 parent 4a8edd6 commit 1c267ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fcntl.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ fn wrap_readlink_result(v: &mut Vec<u8>, res: ssize_t) -> Result<OsString> {
189189
}
190190
}
191191

192-
pub fn readlink<'a, P: ?Sized + NixPath>(path: &P) -> Result<OsString> {
192+
pub fn readlink<P: ?Sized + NixPath>(path: &P) -> Result<OsString> {
193193
let mut v = Vec::with_capacity(libc::PATH_MAX as usize);
194194
let res = path.with_nix_path(|cstr| {
195195
unsafe { libc::readlink(cstr.as_ptr(), v.as_mut_ptr() as *mut c_char, v.capacity() as size_t) }
@@ -199,7 +199,7 @@ pub fn readlink<'a, P: ?Sized + NixPath>(path: &P) -> Result<OsString> {
199199
}
200200

201201

202-
pub fn readlinkat<'a, P: ?Sized + NixPath>(dirfd: RawFd, path: &P) -> Result<OsString> {
202+
pub fn readlinkat<P: ?Sized + NixPath>(dirfd: RawFd, path: &P) -> Result<OsString> {
203203
let mut v = Vec::with_capacity(libc::PATH_MAX as usize);
204204
let res = path.with_nix_path(|cstr| {
205205
unsafe { libc::readlinkat(dirfd, cstr.as_ptr(), v.as_mut_ptr() as *mut c_char, v.capacity() as size_t) }

0 commit comments

Comments
 (0)