Merge pull request #525 from gwenn/warning

Fix warning: the item `X` is imported redundantly
This commit is contained in:
gwenn 2019-06-02 09:08:31 +02:00 committed by GitHub
commit d1cc5e9658
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 5 deletions

View File

@ -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);

View File

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