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:
Thom Chiovoloni
2020-04-06 10:43:43 -07:00
committed by GitHub
parent 521f8dc481
commit 26c744d0c3
3 changed files with 63 additions and 6 deletions

View File

@@ -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 ?
}
}