mirror of
https://github.com/isar/rusqlite.git
synced 2025-04-10 01:07:45 +08:00
Fix clippy warnings
This commit is contained in:
parent
87e324d720
commit
3a44c47377
@ -68,8 +68,6 @@ impl Session<'_> {
|
|||||||
where
|
where
|
||||||
F: Fn(&str) -> bool + RefUnwindSafe,
|
F: Fn(&str) -> bool + RefUnwindSafe,
|
||||||
{
|
{
|
||||||
use std::str;
|
|
||||||
|
|
||||||
let boxed_filter: *mut F = p_arg as *mut F;
|
let boxed_filter: *mut F = p_arg as *mut F;
|
||||||
let tbl_name = CStr::from_ptr(tbl_str).to_str();
|
let tbl_name = CStr::from_ptr(tbl_str).to_str();
|
||||||
c_int::from(
|
c_int::from(
|
||||||
@ -694,8 +692,6 @@ where
|
|||||||
F: Fn(&str) -> bool + Send + RefUnwindSafe + 'static,
|
F: Fn(&str) -> bool + Send + RefUnwindSafe + 'static,
|
||||||
C: Fn(ConflictType, ChangesetItem) -> ConflictAction + Send + RefUnwindSafe + 'static,
|
C: Fn(ConflictType, ChangesetItem) -> ConflictAction + Send + RefUnwindSafe + 'static,
|
||||||
{
|
{
|
||||||
use std::str;
|
|
||||||
|
|
||||||
let tuple: *mut (Option<F>, C) = p_ctx as *mut (Option<F>, C);
|
let tuple: *mut (Option<F>, C) = p_ctx as *mut (Option<F>, C);
|
||||||
let tbl_name = CStr::from_ptr(tbl_str).to_str();
|
let tbl_name = CStr::from_ptr(tbl_str).to_str();
|
||||||
match *tuple {
|
match *tuple {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user