Merge pull request #360 from gwenn/clippy

Fix clippy warnings
This commit is contained in:
gwenn 2018-06-28 21:01:26 +02:00 committed by GitHub
commit 33d40aac10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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