From 230c76fe66479a99d9f1847cd973925c106f3429 Mon Sep 17 00:00:00 2001 From: Thom Chiovoloni Date: Tue, 4 Jan 2022 20:24:36 -0800 Subject: [PATCH] Fix a minor clippy complaint from nightly clippy --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 5a5e881..ec9c96f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1218,7 +1218,7 @@ mod test { fn test_open_failure() { let filename = "no_such_file.db"; let result = Connection::open_with_flags(filename, OpenFlags::SQLITE_OPEN_READ_ONLY); - assert!(!result.is_ok()); + assert!(result.is_err()); let err = result.err().unwrap(); if let Error::SqliteFailure(e, Some(msg)) = err { assert_eq!(ErrorCode::CannotOpen, e.code);