mirror of
https://github.com/isar/rusqlite.git
synced 2025-10-10 05:22:19 +08:00
clippy::map_unwrap_or
This commit is contained in:
@@ -1391,7 +1391,7 @@ mod test {
|
|||||||
assert_eq!(Some(""), db.path());
|
assert_eq!(Some(""), db.path());
|
||||||
let path = tmp.path().join("file.db");
|
let path = tmp.path().join("file.db");
|
||||||
let db = Connection::open(path)?;
|
let db = Connection::open(path)?;
|
||||||
assert!(db.path().map(|p| p.ends_with("file.db")).unwrap_or(false));
|
assert!(db.path().is_some_and(|p| p.ends_with("file.db")));
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user