From 1b8af31f320eb51ddb6cf3c99d2d08dfe60177c6 Mon Sep 17 00:00:00 2001 From: "Joshua C. Randall" Date: Mon, 8 Mar 2021 11:57:24 +0000 Subject: [PATCH] silence clippy::needless-update warning whe the ffi bindings specify exactly the set of sqlite3_module fields we explicitly list --- src/vtab/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vtab/mod.rs b/src/vtab/mod.rs index 4d9ad65..d5a0492 100644 --- a/src/vtab/mod.rs +++ b/src/vtab/mod.rs @@ -90,6 +90,7 @@ const ZERO_MODULE: ffi::sqlite3_module = unsafe { 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 // different so that the virtual table is not an eponymous virtual table. + #[allow(clippy::needless_update)] &Module { base: ffi::sqlite3_module { // 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 // as the xConnect method For eponymous-only virtual tables, the xCreate // method is NULL + #[allow(clippy::needless_update)] &Module { base: ffi::sqlite3_module { // We don't use V3