mirror of
https://github.com/isar/rusqlite.git
synced 2025-08-20 21:09:31 +08:00
Improve CI test coverage (#670)
* Improve CI test coverage * Run clippy/rustfmt/rustdoc in CI * Disable warnings when building bundled sqlite
This commit is contained in:
@@ -118,16 +118,15 @@ impl InnerConnection {
|
||||
}
|
||||
|
||||
let callback: fn(&Connection, &str) -> Result<()> = mem::transmute(arg1);
|
||||
if catch_unwind(|| {
|
||||
let res = catch_unwind(|| {
|
||||
let conn = Connection::from_handle(arg2).unwrap();
|
||||
let collation_name = {
|
||||
let c_slice = CStr::from_ptr(arg3).to_bytes();
|
||||
str::from_utf8_unchecked(c_slice)
|
||||
};
|
||||
callback(&conn, collation_name)
|
||||
})
|
||||
.is_err()
|
||||
{
|
||||
});
|
||||
if res.is_err() {
|
||||
return; // FIXME How ?
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user