mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-22 16:29:20 +08:00
Fix clippy warnings
This commit is contained in:
parent
05e87b8d8d
commit
922228f604
@ -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};
|
||||
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user