Skip to content

Commit

Permalink
Fix clippy::needless_lifetimes lint (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys authored Dec 16, 2024
1 parent 8fee941 commit 6fb9579
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub enum ValueRef<'a, T> {
Owned(T),
}

impl<'a, T> AsRef<T> for ValueRef<'a, T> {
impl<T> AsRef<T> for ValueRef<'_, T> {
fn as_ref(&self) -> &T {
match self {
Self::Borrowed(value) => value,
Expand All @@ -50,7 +50,7 @@ impl<'a, T> AsRef<T> for ValueRef<'a, T> {
}
}

impl<'a, T: Clone> ValueRef<'a, T> {
impl<T: Clone> ValueRef<'_, T> {
pub fn into_owned(self) -> T {
match self {
Self::Borrowed(value) => value.clone(),
Expand Down

0 comments on commit 6fb9579

Please sign in to comment.