Make connect/create/declare_vtab safe

This commit is contained in:
gwenn
2018-06-20 20:21:26 +02:00
parent afeb5d4d47
commit eaee342025
4 changed files with 10 additions and 18 deletions

View File

@@ -62,11 +62,7 @@ impl Module for ArrayModule {
self.0
}
unsafe fn connect(
db: *mut ffi::sqlite3,
_aux: Option<&()>,
_args: &[&[u8]],
) -> Result<ArrayTab> {
fn connect(db: &mut ffi::sqlite3, _aux: Option<&()>, _args: &[&[u8]]) -> Result<ArrayTab> {
let vtab = ArrayTab {
base: Default::default(),
};