Fix a minor clippy complaint from nightly clippy

This commit is contained in:
Thom Chiovoloni 2022-01-04 20:24:36 -08:00
parent 519684a744
commit 230c76fe66

View File

@ -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);