mirror of
https://github.com/isar/rusqlite.git
synced 2025-10-08 12:32:20 +08:00
Fix clippy warnings
This commit is contained in:
@@ -115,7 +115,7 @@ unsafe impl<'vtab> VTab<'vtab> for CsvTab {
|
||||
if !Path::new(value).exists() {
|
||||
return Err(Error::ModuleError(format!("file '{value}' does not exist")));
|
||||
}
|
||||
vtab.filename = value.to_owned();
|
||||
value.clone_into(&mut vtab.filename);
|
||||
}
|
||||
"schema" => {
|
||||
schema = Some(value.to_owned());
|
||||
|
@@ -1080,12 +1080,12 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
unsafe extern "C" fn rust_open<'vtab, T: 'vtab>(
|
||||
unsafe extern "C" fn rust_open<'vtab, T>(
|
||||
vtab: *mut ffi::sqlite3_vtab,
|
||||
pp_cursor: *mut *mut ffi::sqlite3_vtab_cursor,
|
||||
) -> c_int
|
||||
where
|
||||
T: VTab<'vtab>,
|
||||
T: VTab<'vtab> + 'vtab,
|
||||
{
|
||||
let vt = vtab.cast::<T>();
|
||||
match (*vt).open() {
|
||||
@@ -1186,14 +1186,14 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
unsafe extern "C" fn rust_update<'vtab, T: 'vtab>(
|
||||
unsafe extern "C" fn rust_update<'vtab, T>(
|
||||
vtab: *mut ffi::sqlite3_vtab,
|
||||
argc: c_int,
|
||||
argv: *mut *mut ffi::sqlite3_value,
|
||||
p_rowid: *mut ffi::sqlite3_int64,
|
||||
) -> c_int
|
||||
where
|
||||
T: UpdateVTab<'vtab>,
|
||||
T: UpdateVTab<'vtab> + 'vtab,
|
||||
{
|
||||
assert!(argc >= 1);
|
||||
let args = slice::from_raw_parts_mut(argv, argc as usize);
|
||||
|
Reference in New Issue
Block a user