mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-22 16:29:20 +08:00
Fix a minor clippy complaint from nightly clippy
This commit is contained in:
parent
519684a744
commit
230c76fe66
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user