This commit is contained in:
gwenn 2018-07-14 19:27:45 +02:00
parent ed1bdc0e68
commit 45624dc60b
4 changed files with 5 additions and 5 deletions

View File

@ -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! {

View File

@ -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! {

View File

@ -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))
}

View File

@ -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! {