mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-26 19:41:37 +08:00
Merge pull request #912 from Genomicsplc/fix-needless-update-warning
silence clippy::needless-update warning in vtab module creation functions
This commit is contained in:
commit
5d42ba7c29
@ -90,6 +90,7 @@ const ZERO_MODULE: ffi::sqlite3_module = unsafe {
|
|||||||
pub fn read_only_module<'vtab, T: CreateVTab<'vtab>>() -> &'static Module<'vtab, T> {
|
pub fn read_only_module<'vtab, T: CreateVTab<'vtab>>() -> &'static Module<'vtab, T> {
|
||||||
// The xConnect and xCreate methods do the same thing, but they must be
|
// The xConnect and xCreate methods do the same thing, but they must be
|
||||||
// different so that the virtual table is not an eponymous virtual table.
|
// different so that the virtual table is not an eponymous virtual table.
|
||||||
|
#[allow(clippy::needless_update)]
|
||||||
&Module {
|
&Module {
|
||||||
base: ffi::sqlite3_module {
|
base: ffi::sqlite3_module {
|
||||||
// We don't use V3
|
// We don't use V3
|
||||||
@ -129,6 +130,7 @@ pub fn eponymous_only_module<'vtab, T: VTab<'vtab>>() -> &'static Module<'vtab,
|
|||||||
// A virtual table is eponymous if its xCreate method is the exact same function
|
// A virtual table is eponymous if its xCreate method is the exact same function
|
||||||
// as the xConnect method For eponymous-only virtual tables, the xCreate
|
// as the xConnect method For eponymous-only virtual tables, the xCreate
|
||||||
// method is NULL
|
// method is NULL
|
||||||
|
#[allow(clippy::needless_update)]
|
||||||
&Module {
|
&Module {
|
||||||
base: ffi::sqlite3_module {
|
base: ffi::sqlite3_module {
|
||||||
// We don't use V3
|
// We don't use V3
|
||||||
|
Loading…
Reference in New Issue
Block a user