mirror of
https://github.com/isar/rusqlite.git
synced 2025-10-31 05:48:56 +08:00
Rustfmt
This commit is contained in:
@@ -120,6 +120,7 @@ impl ArrayTabCursor {
|
||||
ptr: None,
|
||||
}
|
||||
}
|
||||
|
||||
fn len(&self) -> i64 {
|
||||
match self.ptr {
|
||||
Some(ref a) => a.len() as i64,
|
||||
@@ -137,13 +138,16 @@ impl VTabCursor for ArrayTabCursor {
|
||||
self.row_id = 1;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn next(&mut self) -> Result<()> {
|
||||
self.row_id += 1;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn eof(&self) -> bool {
|
||||
self.row_id > self.len()
|
||||
}
|
||||
|
||||
fn column(&self, ctx: &mut Context, i: c_int) -> Result<()> {
|
||||
match i {
|
||||
CARRAY_COLUMN_POINTER => Ok(()),
|
||||
@@ -157,6 +161,7 @@ impl VTabCursor for ArrayTabCursor {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn rowid(&self) -> Result<i64> {
|
||||
Ok(self.row_id)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user