diff --git a/src/vtab/array.rs b/src/vtab/array.rs index 64cd1e9..1794da5 100644 --- a/src/vtab/array.rs +++ b/src/vtab/array.rs @@ -69,7 +69,7 @@ impl Module for ArrayModule { _args: &[&[u8]], ) -> Result<(String, ArrayTab)> { let vtab = ArrayTab { - base: Default::default(), + base: ffi::sqlite3_vtab::default(), }; Ok(("CREATE TABLE x(value,pointer hidden)".to_owned(), vtab)) } @@ -139,7 +139,7 @@ struct ArrayTabCursor { impl ArrayTabCursor { fn new() -> ArrayTabCursor { ArrayTabCursor { - base: Default::default(), + base: ffi::sqlite3_vtab_cursor::default(), row_id: 0, ptr: None, } diff --git a/src/vtab/csvtab.rs b/src/vtab/csvtab.rs index fc14dc0..03612b3 100644 --- a/src/vtab/csvtab.rs +++ b/src/vtab/csvtab.rs @@ -95,7 +95,7 @@ impl Module for CSVModule { } let mut vtab = CSVTab { - base: Default::default(), + base: ffi::sqlite3_vtab::default(), filename: "".to_owned(), has_headers: false, delimiter: b',', @@ -294,7 +294,7 @@ struct CSVTabCursor { impl CSVTabCursor { fn new(reader: csv::Reader) -> CSVTabCursor { CSVTabCursor { - base: Default::default(), + base: ffi::sqlite3_vtab_cursor::default(), reader, row_number: 0, cols: csv::StringRecord::new(), diff --git a/src/vtab/series.rs b/src/vtab/series.rs index 5d80073..33c9208 100644 --- a/src/vtab/series.rs +++ b/src/vtab/series.rs @@ -52,7 +52,7 @@ impl Module for Series { _args: &[&[u8]], ) -> Result<(String, SeriesTab)> { let vtab = SeriesTab { - base: Default::default(), + base: ffi::sqlite3_vtab::default(), }; Ok(( "CREATE TABLE x(value,start hidden,stop hidden,step hidden)".to_owned(), @@ -196,7 +196,7 @@ struct SeriesTabCursor { impl SeriesTabCursor { fn new() -> SeriesTabCursor { - Default::default() + SeriesTabCursor::default() } } impl VTabCursor for SeriesTabCursor {