misc: Elide needless lifetimes

As clippy of rust-toolchain version 1.83.0-beta.1 suggests, elide
needless lifetimes to `'_`.

Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>
This commit is contained in:
Ruoqing He 2024-10-18 17:42:42 +08:00 committed by Rob Bradford
parent 86315adb23
commit 0aab960bf1
5 changed files with 6 additions and 6 deletions

View file

@ -320,7 +320,7 @@ impl IovecBuffer {
struct IovecBufferBorrowed<'a>(&'a mut Vec<libc::iovec>);
impl<'a> std::ops::Deref for IovecBufferBorrowed<'a> {
impl std::ops::Deref for IovecBufferBorrowed<'_> {
type Target = Vec<libc::iovec>;
fn deref(&self) -> &Self::Target {
@ -328,7 +328,7 @@ impl<'a> std::ops::Deref for IovecBufferBorrowed<'a> {
}
}
impl<'a> std::ops::DerefMut for IovecBufferBorrowed<'a> {
impl std::ops::DerefMut for IovecBufferBorrowed<'_> {
fn deref_mut(&mut self) -> &mut Self::Target {
self.0
}