mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-26 11:31:37 +08:00
Clean up
This commit is contained in:
parent
ed1bdc0e68
commit
45624dc60b
@ -31,7 +31,7 @@ impl ToSql for Array {
|
||||
/// Register the "rarray" module.
|
||||
pub fn load_module(conn: &Connection) -> Result<()> {
|
||||
let aux: Option<()> = None;
|
||||
conn.create_module::<ArrayTab>("rarray", &ARRAY_MODULE, aux)
|
||||
conn.create_module("rarray", &ARRAY_MODULE, aux)
|
||||
}
|
||||
|
||||
lazy_static! {
|
||||
|
@ -28,7 +28,7 @@ use {Connection, Error, Result};
|
||||
/// ```
|
||||
pub fn load_module(conn: &Connection) -> Result<()> {
|
||||
let aux: Option<()> = None;
|
||||
conn.create_module::<CSVTab>("csv", &CSV_MODULE, aux)
|
||||
conn.create_module("csv", &CSV_MODULE, aux)
|
||||
}
|
||||
|
||||
lazy_static! {
|
||||
|
@ -434,7 +434,7 @@ impl Connection {
|
||||
) -> Result<()> {
|
||||
self.db
|
||||
.borrow_mut()
|
||||
.create_module::<T>(module_name, module, aux)
|
||||
.create_module(module_name, module, aux)
|
||||
}
|
||||
}
|
||||
|
||||
@ -722,7 +722,7 @@ where
|
||||
Some(str::from_utf8_unchecked(c_slice))
|
||||
};
|
||||
let args = slice::from_raw_parts_mut(argv, argc as usize);
|
||||
let values = Values { args: args };
|
||||
let values = Values { args };
|
||||
let cr = cursor as *mut C;
|
||||
cursor_error(cursor, (*cr).filter(idx_num, idx_name, &values))
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ use {Connection, Result};
|
||||
/// Register the "generate_series" module.
|
||||
pub fn load_module(conn: &Connection) -> Result<()> {
|
||||
let aux: Option<()> = None;
|
||||
conn.create_module::<SeriesTab>("generate_series", &SERIES_MODULE, aux)
|
||||
conn.create_module("generate_series", &SERIES_MODULE, aux)
|
||||
}
|
||||
|
||||
lazy_static! {
|
||||
|
Loading…
Reference in New Issue
Block a user