mirror of
https://github.com/isar/rusqlite.git
synced 2025-09-15 20:22:19 +08:00
Allow optionally passing an Error parameter to rusqlite::Result
(#678)
This commit is contained in:
@@ -24,7 +24,6 @@
|
||||
use std::fs::File;
|
||||
use std::os::raw::c_int;
|
||||
use std::path::Path;
|
||||
use std::result;
|
||||
use std::str;
|
||||
|
||||
use crate::ffi;
|
||||
@@ -70,7 +69,7 @@ struct CSVTab {
|
||||
}
|
||||
|
||||
impl CSVTab {
|
||||
fn reader(&self) -> result::Result<csv::Reader<File>, csv::Error> {
|
||||
fn reader(&self) -> Result<csv::Reader<File>, csv::Error> {
|
||||
csv::ReaderBuilder::new()
|
||||
.has_headers(self.has_headers)
|
||||
.delimiter(self.delimiter)
|
||||
|
Reference in New Issue
Block a user