mirror of
https://github.com/isar/rusqlite.git
synced 2025-03-25 23:06:04 +08:00
Merge pull request #1577 from gwenn/needless_lifetimes
Fix Clippy needless_lifetimes warnings
This commit is contained in:
commit
b7309f2dca
@ -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() {
|
||||
|
@ -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>,
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user