mirror of
https://github.com/isar/rusqlite.git
synced 2025-08-19 12:29:34 +08:00
Rustfmt
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
//! This file contains unit tests for `rusqlite::trace::config_log`. This function affects
|
||||
//! SQLite process-wide and so is not safe to run as a normal #[test] in the library.
|
||||
//! This file contains unit tests for `rusqlite::trace::config_log`. This
|
||||
//! function affects SQLite process-wide and so is not safe to run as a normal
|
||||
//! #[test] in the library.
|
||||
|
||||
#[cfg(feature = "trace")]
|
||||
#[macro_use]
|
||||
|
@@ -65,16 +65,20 @@ fn test_dummy_module() {
|
||||
self.row_id = 1;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn next(&mut self) -> Result<()> {
|
||||
self.row_id += 1;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn eof(&self) -> bool {
|
||||
self.row_id > 1
|
||||
}
|
||||
|
||||
fn column(&self, ctx: &mut Context, _: c_int) -> Result<()> {
|
||||
ctx.set_result(&self.row_id)
|
||||
}
|
||||
|
||||
fn rowid(&self) -> Result<i64> {
|
||||
Ok(self.row_id)
|
||||
}
|
||||
|
Reference in New Issue
Block a user