Fix clippy warnings

Calling OpenFlags::default() is more clear than this expression
This commit is contained in:
gwenn 2018-06-28 20:46:28 +02:00
parent 42bc9ea8f8
commit 2ea17d0b54

View File

@ -208,7 +208,7 @@ impl Connection {
/// Will return `Err` if `path` cannot be converted to a C-compatible string or if the /// Will return `Err` if `path` cannot be converted to a C-compatible string or if the
/// underlying SQLite open call fails. /// underlying SQLite open call fails.
pub fn open<P: AsRef<Path>>(path: P) -> Result<Connection> { pub fn open<P: AsRef<Path>>(path: P) -> Result<Connection> {
let flags = Default::default(); let flags = OpenFlags::default();
Connection::open_with_flags(path, flags) Connection::open_with_flags(path, flags)
} }
@ -218,7 +218,7 @@ impl Connection {
/// ///
/// Will return `Err` if the underlying SQLite open call fails. /// Will return `Err` if the underlying SQLite open call fails.
pub fn open_in_memory() -> Result<Connection> { pub fn open_in_memory() -> Result<Connection> {
let flags = Default::default(); let flags = OpenFlags::default();
Connection::open_in_memory_with_flags(flags) Connection::open_in_memory_with_flags(flags)
} }