Fix clippy warnings

This commit is contained in:
gwenn 2020-02-09 11:48:08 +01:00
parent 05e87b8d8d
commit 922228f604
6 changed files with 0 additions and 9 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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