From 2ea17d0b544c3386ee28eaf5b3ee307d8fa509fe Mon Sep 17 00:00:00 2001 From: gwenn Date: Thu, 28 Jun 2018 20:46:28 +0200 Subject: [PATCH] Fix clippy warnings Calling OpenFlags::default() is more clear than this expression --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 585b54f..d08e318 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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>(path: P) -> Result { - 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 { - let flags = Default::default(); + let flags = OpenFlags::default(); Connection::open_in_memory_with_flags(flags) }