From f5c20abaa198ff8f3dca5aba8e37bef6bc295ce4 Mon Sep 17 00:00:00 2001 From: Thom Chiovoloni Date: Tue, 7 Apr 2020 08:36:18 -0700 Subject: [PATCH] Remove unused vtab_v3 feature while I'm here --- Cargo.toml | 2 -- src/vtab/mod.rs | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 923e3a9..2dd3ea0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -42,8 +42,6 @@ sqlcipher = ["libsqlite3-sys/sqlcipher"] unlock_notify = ["libsqlite3-sys/unlock_notify"] # xSavepoint, xRelease and xRollbackTo: 3.7.7 (2011-06-23) vtab = ["libsqlite3-sys/min_sqlite_version_3_7_7", "lazy_static"] -# xShadowName: 3.26.0 -vtab_v3 = ["vtab"] csvtab = ["csv", "vtab"] # pointer passing interfaces: 3.20.0 array = ["vtab"] diff --git a/src/vtab/mod.rs b/src/vtab/mod.rs index aa07c3f..97124b5 100644 --- a/src/vtab/mod.rs +++ b/src/vtab/mod.rs @@ -70,8 +70,7 @@ unsafe impl Send for Module {} unsafe impl Sync for Module {} // Used as a trailing initializer for sqlite3_module -- this way we avoid having -// the build fail if buildtime_bindgen is on, our bindings have -// `sqlite3_module::xShadowName`, but vtab_v3 wasn't specified. +// the build fail if buildtime_bindgen is on fn zeroed_module() -> ffi::sqlite3_module { // This is safe, as bindgen-generated structs are allowed to be zeroed. unsafe { std::mem::MaybeUninit::zeroed().assume_init() }