From 93b5c1081643fd39ba854833422fb9045c491b4e Mon Sep 17 00:00:00 2001 From: gwenn Date: Sun, 2 Jun 2019 08:36:16 +0200 Subject: [PATCH] Fix warning: the item `X` is imported redundantly --- src/session.rs | 2 -- src/vtab/mod.rs | 3 --- 2 files changed, 5 deletions(-) diff --git a/src/session.rs b/src/session.rs index ac6e9f9..23c3a15 100644 --- a/src/session.rs +++ b/src/session.rs @@ -65,7 +65,6 @@ impl Session<'_> { where F: Fn(&str) -> bool + RefUnwindSafe, { - use std::ffi::CStr; use std::str; let boxed_filter: *mut F = p_arg as *mut F; @@ -648,7 +647,6 @@ where F: Fn(&str) -> bool + Send + RefUnwindSafe + 'static, C: Fn(ConflictType, ChangesetItem) -> ConflictAction + Send + RefUnwindSafe + 'static, { - use std::ffi::CStr; use std::str; let tuple: *mut (Option, C) = p_ctx as *mut (Option, C); diff --git a/src/vtab/mod.rs b/src/vtab/mod.rs index 4832434..11a83ab 100644 --- a/src/vtab/mod.rs +++ b/src/vtab/mod.rs @@ -645,7 +645,6 @@ where { use std::error::Error as StdError; use std::ffi::CStr; - use std::slice; let mut conn = VTabConnection(db); let aux = aux as *mut T::Aux; @@ -699,7 +698,6 @@ where { use std::error::Error as StdError; use std::ffi::CStr; - use std::slice; let mut conn = VTabConnection(db); let aux = aux as *mut T::Aux; @@ -852,7 +850,6 @@ where C: VTabCursor, { use std::ffi::CStr; - use std::slice; use std::str; let idx_name = if idx_str.is_null() { None