mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-23 00:39:20 +08:00
Fix clippy warnings
Calling OpenFlags::default() is more clear than this expression
This commit is contained in:
parent
42bc9ea8f8
commit
2ea17d0b54
@ -208,7 +208,7 @@ impl Connection {
|
||||
/// Will return `Err` if `path` cannot be converted to a C-compatible string or if the
|
||||
/// underlying SQLite open call fails.
|
||||
pub fn open<P: AsRef<Path>>(path: P) -> Result<Connection> {
|
||||
let flags = Default::default();
|
||||
let flags = OpenFlags::default();
|
||||
Connection::open_with_flags(path, flags)
|
||||
}
|
||||
|
||||
@ -218,7 +218,7 @@ impl Connection {
|
||||
///
|
||||
/// Will return `Err` if the underlying SQLite open call fails.
|
||||
pub fn open_in_memory() -> Result<Connection> {
|
||||
let flags = Default::default();
|
||||
let flags = OpenFlags::default();
|
||||
Connection::open_in_memory_with_flags(flags)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user