mirror of
https://github.com/isar/rusqlite.git
synced 2025-11-26 22:52:30 +08:00
Make VTab / VTabCursor unsafe trait as implmenting them on the wrong type is unsound
This commit is contained in:
committed by
Thom Chiovoloni
parent
3c6b57fe1b
commit
c9ef5bd63c
@@ -49,7 +49,7 @@ struct SeriesTab {
|
||||
base: ffi::sqlite3_vtab,
|
||||
}
|
||||
|
||||
impl VTab for SeriesTab {
|
||||
unsafe impl VTab for SeriesTab {
|
||||
type Aux = ();
|
||||
type Cursor = SeriesTabCursor;
|
||||
|
||||
@@ -181,7 +181,7 @@ impl SeriesTabCursor {
|
||||
SeriesTabCursor::default()
|
||||
}
|
||||
}
|
||||
impl VTabCursor for SeriesTabCursor {
|
||||
unsafe impl VTabCursor for SeriesTabCursor {
|
||||
fn filter(&mut self, idx_num: c_int, _idx_str: Option<&str>, args: &Values<'_>) -> Result<()> {
|
||||
let idx_num = QueryPlanFlags::from_bits_truncate(idx_num);
|
||||
let mut i = 0;
|
||||
|
||||
Reference in New Issue
Block a user