mirror of
https://github.com/isar/rusqlite.git
synced 2025-03-29 09:02:57 +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>,
|
pub(crate) stmt: &'stmt Statement<'stmt>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'stmt> Row<'stmt> {
|
impl Row<'_> {
|
||||||
/// Get the value of a particular column of the result row.
|
/// Get the value of a particular column of the result row.
|
||||||
///
|
///
|
||||||
/// # Panics
|
/// # Panics
|
||||||
@ -355,7 +355,7 @@ impl<'stmt> AsRef<Statement<'stmt>> for Row<'stmt> {
|
|||||||
/// Debug `Row` like an ordered `Map<Result<&str>, Result<(Type, ValueRef)>>`
|
/// 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
|
/// with column name as key except that for `Type::Blob` only its size is
|
||||||
/// printed (not its content).
|
/// 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 {
|
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||||
let mut dm = f.debug_map();
|
let mut dm = f.debug_map();
|
||||||
for c in 0..self.stmt.column_count() {
|
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
|
where
|
||||||
T: Into<Self>,
|
T: Into<Self>,
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user