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

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