From da05a1f1b526f28fd3fad1647cce1361171cc8c9 Mon Sep 17 00:00:00 2001 From: gwenn Date: Fri, 11 Oct 2024 19:02:15 +0200 Subject: [PATCH] Fix Clippy needless_lifetimes warnings --- src/row.rs | 4 ++-- src/types/value_ref.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/row.rs b/src/row.rs index f730995..8eb5823 100644 --- a/src/row.rs +++ b/src/row.rs @@ -247,7 +247,7 @@ pub struct Row<'stmt> { pub(crate) stmt: &'stmt Statement<'stmt>, } -impl<'stmt> Row<'stmt> { +impl Row<'_> { /// Get the value of a particular column of the result row. /// /// # Panics @@ -355,7 +355,7 @@ impl<'stmt> AsRef> for Row<'stmt> { /// Debug `Row` like an ordered `Map, Result<(Type, ValueRef)>>` /// with column name as key except that for `Type::Blob` only its size is /// printed (not its content). -impl<'stmt> std::fmt::Debug for Row<'stmt> { +impl std::fmt::Debug for Row<'_> { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { let mut dm = f.debug_map(); for c in 0..self.stmt.column_count() { diff --git a/src/types/value_ref.rs b/src/types/value_ref.rs index 889179e..b6fe0fb 100644 --- a/src/types/value_ref.rs +++ b/src/types/value_ref.rs @@ -194,7 +194,7 @@ impl<'a> From<&'a Value> for ValueRef<'a> { } } -impl<'a, T> From> for ValueRef<'a> +impl From> for ValueRef<'_> where T: Into, {