From 922228f6045ff0c67cf30286b4f9c882e8c9fc4e Mon Sep 17 00:00:00 2001 From: gwenn Date: Sun, 9 Feb 2020 11:48:08 +0100 Subject: [PATCH] Fix clippy warnings --- src/busy.rs | 1 - src/lib.rs | 1 - src/types/mod.rs | 2 -- src/types/serde_json.rs | 1 - src/types/time.rs | 3 --- src/vtab/csvtab.rs | 1 - 6 files changed, 9 deletions(-) diff --git a/src/busy.rs b/src/busy.rs index 76f6abe..223df78 100644 --- a/src/busy.rs +++ b/src/busy.rs @@ -81,7 +81,6 @@ mod test { use std::sync::mpsc::sync_channel; use std::thread; use std::time::Duration; - use tempfile; use crate::{Connection, Error, ErrorCode, Result, TransactionBehavior, NO_PARAMS}; diff --git a/src/lib.rs b/src/lib.rs index e3b8bce..775110e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -870,7 +870,6 @@ mod test { use fallible_iterator::FallibleIterator; use std::error::Error as StdError; use std::fmt; - use tempfile; // this function is never called, but is still type checked; in // particular, calls with specific instantiations will require diff --git a/src/types/mod.rs b/src/types/mod.rs index 93214cc..d79ff82 100644 --- a/src/types/mod.rs +++ b/src/types/mod.rs @@ -105,8 +105,6 @@ impl fmt::Display for Type { #[cfg(test)] mod test { - use time; - use super::Value; use crate::{Connection, Error, NO_PARAMS}; use std::f64::EPSILON; diff --git a/src/types/serde_json.rs b/src/types/serde_json.rs index a221b67..abaecda 100644 --- a/src/types/serde_json.rs +++ b/src/types/serde_json.rs @@ -28,7 +28,6 @@ impl FromSql for Value { mod test { use crate::types::ToSql; use crate::{Connection, NO_PARAMS}; - use serde_json; fn checked_memory_handle() -> Connection { let db = Connection::open_in_memory().unwrap(); diff --git a/src/types/time.rs b/src/types/time.rs index 62075c7..097b22a 100644 --- a/src/types/time.rs +++ b/src/types/time.rs @@ -1,5 +1,3 @@ -use time; - use crate::types::{FromSql, FromSqlError, FromSqlResult, ToSql, ToSqlOutput, ValueRef}; use crate::Result; @@ -37,7 +35,6 @@ impl FromSql for time::Timespec { #[cfg(test)] mod test { use crate::{Connection, Result, NO_PARAMS}; - use time; fn checked_memory_handle() -> Connection { let db = Connection::open_in_memory().unwrap(); diff --git a/src/vtab/csvtab.rs b/src/vtab/csvtab.rs index 8c3edd7..cb6aeac 100644 --- a/src/vtab/csvtab.rs +++ b/src/vtab/csvtab.rs @@ -1,7 +1,6 @@ //! CSV Virtual Table. //! //! Port of [csv](http://www.sqlite.org/cgi/src/finfo?name=ext/misc/csv.c) C extension. -use csv; use std::fs::File; use std::os::raw::c_int; use std::path::Path;