mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-23 00:39:20 +08:00
Fix warning: the item X
is imported redundantly
This commit is contained in:
parent
c87c49cd35
commit
93b5c10816
@ -65,7 +65,6 @@ impl Session<'_> {
|
|||||||
where
|
where
|
||||||
F: Fn(&str) -> bool + RefUnwindSafe,
|
F: Fn(&str) -> bool + RefUnwindSafe,
|
||||||
{
|
{
|
||||||
use std::ffi::CStr;
|
|
||||||
use std::str;
|
use std::str;
|
||||||
|
|
||||||
let boxed_filter: *mut F = p_arg as *mut F;
|
let boxed_filter: *mut F = p_arg as *mut F;
|
||||||
@ -648,7 +647,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::ffi::CStr;
|
|
||||||
use std::str;
|
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);
|
||||||
|
@ -645,7 +645,6 @@ where
|
|||||||
{
|
{
|
||||||
use std::error::Error as StdError;
|
use std::error::Error as StdError;
|
||||||
use std::ffi::CStr;
|
use std::ffi::CStr;
|
||||||
use std::slice;
|
|
||||||
|
|
||||||
let mut conn = VTabConnection(db);
|
let mut conn = VTabConnection(db);
|
||||||
let aux = aux as *mut T::Aux;
|
let aux = aux as *mut T::Aux;
|
||||||
@ -699,7 +698,6 @@ where
|
|||||||
{
|
{
|
||||||
use std::error::Error as StdError;
|
use std::error::Error as StdError;
|
||||||
use std::ffi::CStr;
|
use std::ffi::CStr;
|
||||||
use std::slice;
|
|
||||||
|
|
||||||
let mut conn = VTabConnection(db);
|
let mut conn = VTabConnection(db);
|
||||||
let aux = aux as *mut T::Aux;
|
let aux = aux as *mut T::Aux;
|
||||||
@ -852,7 +850,6 @@ where
|
|||||||
C: VTabCursor,
|
C: VTabCursor,
|
||||||
{
|
{
|
||||||
use std::ffi::CStr;
|
use std::ffi::CStr;
|
||||||
use std::slice;
|
|
||||||
use std::str;
|
use std::str;
|
||||||
let idx_name = if idx_str.is_null() {
|
let idx_name = if idx_str.is_null() {
|
||||||
None
|
None
|
||||||
|
Loading…
Reference in New Issue
Block a user