From 6fb95796735333dd9f769188d349fd8c2a771e57 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Mon, 16 Dec 2024 06:59:42 -0500 Subject: [PATCH] Fix `clippy::needless_lifetimes` lint (#36) --- src/value.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/value.rs b/src/value.rs index 29dd260..84249be 100644 --- a/src/value.rs +++ b/src/value.rs @@ -41,7 +41,7 @@ pub enum ValueRef<'a, T> { Owned(T), } -impl<'a, T> AsRef for ValueRef<'a, T> { +impl AsRef for ValueRef<'_, T> { fn as_ref(&self) -> &T { match self { Self::Borrowed(value) => value, @@ -50,7 +50,7 @@ impl<'a, T> AsRef for ValueRef<'a, T> { } } -impl<'a, T: Clone> ValueRef<'a, T> { +impl ValueRef<'_, T> { pub fn into_owned(self) -> T { match self { Self::Borrowed(value) => value.clone(),