Merge pull request #1577 from gwenn/needless_lifetimes

Fix Clippy needless_lifetimes warnings
This commit is contained in:
gwenn 2024-10-11 19:10:52 +02:00 committed by GitHub
commit b7309f2dca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -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<Statement<'stmt>> for Row<'stmt> {
/// Debug `Row` like an ordered `Map<Result<&str>, 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() {

View File

@ -194,7 +194,7 @@ impl<'a> From<&'a Value> for ValueRef<'a> {
}
}
impl<'a, T> From<Option<T>> for ValueRef<'a>
impl<T> From<Option<T>> for ValueRef<'_>
where
T: Into<Self>,
{