mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-23 00:39:20 +08:00
Merge pull request #461 from gwenn/fix_session
Fix unused imports in context and session tests
This commit is contained in:
commit
6d1c915c2b
@ -1,13 +1,11 @@
|
|||||||
//! Code related to `sqlite3_context` common to `functions` and `vtab` modules.
|
//! Code related to `sqlite3_context` common to `functions` and `vtab` modules.
|
||||||
|
|
||||||
use std::ffi::CStr;
|
use std::os::raw::{c_int, c_void};
|
||||||
use std::os::raw::{c_char, c_int, c_void};
|
|
||||||
#[cfg(feature = "array")]
|
#[cfg(feature = "array")]
|
||||||
use std::rc::Rc;
|
use std::rc::Rc;
|
||||||
|
|
||||||
use crate::ffi;
|
use crate::ffi;
|
||||||
use crate::ffi::sqlite3_context;
|
use crate::ffi::sqlite3_context;
|
||||||
use crate::ffi::sqlite3_value;
|
|
||||||
|
|
||||||
use crate::str_to_cstring;
|
use crate::str_to_cstring;
|
||||||
use crate::types::{ToSqlOutput, ValueRef};
|
use crate::types::{ToSqlOutput, ValueRef};
|
||||||
|
@ -809,7 +809,7 @@ mod test {
|
|||||||
|
|
||||||
assert!(!called.load(Ordering::Relaxed));
|
assert!(!called.load(Ordering::Relaxed));
|
||||||
let check = db
|
let check = db
|
||||||
.query_row("SELECT 1 FROM foo WHERE t = ?", &["bar"], |row| row.get(0))
|
.query_row("SELECT 1 FROM foo WHERE t = ?", &["bar"], |row| row.get::<_, i32>(0))
|
||||||
.unwrap();
|
.unwrap();
|
||||||
assert_eq!(1, check);
|
assert_eq!(1, check);
|
||||||
|
|
||||||
@ -845,7 +845,7 @@ mod test {
|
|||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
let check = db
|
let check = db
|
||||||
.query_row("SELECT 1 FROM foo WHERE t = ?", &["bar"], |row| row.get(0))
|
.query_row("SELECT 1 FROM foo WHERE t = ?", &["bar"], |row| row.get::<_, i32>(0))
|
||||||
.unwrap();
|
.unwrap();
|
||||||
assert_eq!(1, check);
|
assert_eq!(1, check);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user