Fix more Clippy needless_lifetimes warnings

This commit is contained in:
gwenn 2024-10-18 19:29:17 +02:00
parent b7309f2dca
commit e8b88a058f
4 changed files with 5 additions and 5 deletions

View File

@ -6,7 +6,7 @@ use std::slice::from_raw_parts_mut;
use crate::ffi;
use crate::{Error, Result};
impl<'conn> Blob<'conn> {
impl Blob<'_> {
/// Write `buf` to `self` starting at `write_start`, returning an error if
/// `write_start + buf.len()` is past the end of the blob.
///

View File

@ -51,7 +51,7 @@ pub enum Data<'conn> {
Owned(OwnedData),
}
impl<'conn> Deref for Data<'conn> {
impl Deref for Data<'_> {
type Target = [u8];
fn deref(&self) -> &[u8] {

View File

@ -213,7 +213,7 @@ where
feature = "vtab",
feature = "preupdate_hook"
))]
impl<'a> ValueRef<'a> {
impl ValueRef<'_> {
pub(crate) unsafe fn from_value(value: *mut crate::ffi::sqlite3_value) -> Self {
use crate::ffi;
use std::slice::from_raw_parts;

View File

@ -130,7 +130,7 @@ unsafe impl<'vtab> VTab<'vtab> for VTabLog {
}
}
impl<'vtab> CreateVTab<'vtab> for VTabLog {
impl CreateVTab<'_> for VTabLog {
const KIND: VTabKind = VTabKind::Default;
fn create(
@ -147,7 +147,7 @@ impl<'vtab> CreateVTab<'vtab> for VTabLog {
}
}
impl<'vtab> UpdateVTab<'vtab> for VTabLog {
impl UpdateVTab<'_> for VTabLog {
fn delete(&mut self, arg: ValueRef<'_>) -> Result<()> {
println!("VTabLog::delete({}, {arg:?})", self.i_inst);
Ok(())