mirror of
https://github.com/isar/rusqlite.git
synced 2025-10-19 06:18:56 +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
@@ -95,7 +95,7 @@ impl CSVTab {
|
||||
}
|
||||
}
|
||||
|
||||
impl VTab for CSVTab {
|
||||
unsafe impl VTab for CSVTab {
|
||||
type Aux = ();
|
||||
type Cursor = CSVTabCursor;
|
||||
|
||||
@@ -296,7 +296,7 @@ impl CSVTabCursor {
|
||||
}
|
||||
}
|
||||
|
||||
impl VTabCursor for CSVTabCursor {
|
||||
unsafe impl VTabCursor for CSVTabCursor {
|
||||
// Only a full table scan is supported. So `filter` simply rewinds to
|
||||
// the beginning.
|
||||
fn filter(
|
||||
|
Reference in New Issue
Block a user