Fix clippy warnings

This commit is contained in:
gwenn 2018-06-28 21:07:05 +02:00
parent 3b0423353d
commit ce0c9a6344
3 changed files with 6 additions and 6 deletions

View File

@ -69,7 +69,7 @@ impl Module for ArrayModule {
_args: &[&[u8]],
) -> Result<(String, ArrayTab)> {
let vtab = ArrayTab {
base: Default::default(),
base: ffi::sqlite3_vtab::default(),
};
Ok(("CREATE TABLE x(value,pointer hidden)".to_owned(), vtab))
}
@ -139,7 +139,7 @@ struct ArrayTabCursor {
impl ArrayTabCursor {
fn new() -> ArrayTabCursor {
ArrayTabCursor {
base: Default::default(),
base: ffi::sqlite3_vtab_cursor::default(),
row_id: 0,
ptr: None,
}

View File

@ -95,7 +95,7 @@ impl Module for CSVModule {
}
let mut vtab = CSVTab {
base: Default::default(),
base: ffi::sqlite3_vtab::default(),
filename: "".to_owned(),
has_headers: false,
delimiter: b',',
@ -294,7 +294,7 @@ struct CSVTabCursor {
impl CSVTabCursor {
fn new(reader: csv::Reader<File>) -> CSVTabCursor {
CSVTabCursor {
base: Default::default(),
base: ffi::sqlite3_vtab_cursor::default(),
reader,
row_number: 0,
cols: csv::StringRecord::new(),

View File

@ -52,7 +52,7 @@ impl Module for Series {
_args: &[&[u8]],
) -> Result<(String, SeriesTab)> {
let vtab = SeriesTab {
base: Default::default(),
base: ffi::sqlite3_vtab::default(),
};
Ok((
"CREATE TABLE x(value,start hidden,stop hidden,step hidden)".to_owned(),
@ -196,7 +196,7 @@ struct SeriesTabCursor {
impl SeriesTabCursor {
fn new() -> SeriesTabCursor {
Default::default()
SeriesTabCursor::default()
}
}
impl VTabCursor for SeriesTabCursor {