Introduce Aux associated type

This commit is contained in:
gwenn
2018-05-06 18:05:02 +02:00
parent 2e2b5c41f4
commit 58b8b4c95d
4 changed files with 23 additions and 8 deletions

View File

@@ -16,6 +16,7 @@ pub fn load_module(conn: &Connection) -> Result<()> {
eponymous_module!(
SERIES_MODULE,
SeriesTab,
(),
SeriesTabCursor,
None,
series_connect,
@@ -61,11 +62,12 @@ struct SeriesTab {
}
impl VTab for SeriesTab {
type Aux = ();
type Cursor = SeriesTabCursor;
unsafe fn connect(
db: *mut ffi::sqlite3,
_aux: *mut c_void,
_aux: *mut (),
_args: &[&[u8]],
) -> Result<SeriesTab> {
let vtab = SeriesTab {