mirror of
https://github.com/isar/rusqlite.git
synced 2026-01-02 00:42:22 +08:00
Cleanup use statements
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
//! Convert most of the [Time Strings](http://sqlite.org/lang_datefunc.html) to chrono types.
|
||||
use chrono;
|
||||
|
||||
use std::borrow::Cow;
|
||||
|
||||
use self::chrono::{DateTime, Local, NaiveDate, NaiveDateTime, NaiveTime, TimeZone, Utc};
|
||||
use chrono::{DateTime, Local, NaiveDate, NaiveDateTime, NaiveTime, TimeZone, Utc};
|
||||
|
||||
use crate::types::{FromSql, FromSqlError, FromSqlResult, ToSql, ToSqlOutput, ValueRef};
|
||||
use crate::Result;
|
||||
@@ -129,10 +128,8 @@ impl FromSql for DateTime<Local> {
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use super::chrono::{
|
||||
DateTime, Duration, Local, NaiveDate, NaiveDateTime, NaiveTime, TimeZone, Utc,
|
||||
};
|
||||
use crate::{Connection, Result, NO_PARAMS};
|
||||
use chrono::{DateTime, Duration, Local, NaiveDate, NaiveDateTime, NaiveTime, TimeZone, Utc};
|
||||
|
||||
fn checked_memory_handle() -> Connection {
|
||||
let db = Connection::open_in_memory().unwrap();
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
//! `ToSql` and `FromSql` implementation for JSON `Value`.
|
||||
use serde_json;
|
||||
|
||||
use self::serde_json::Value;
|
||||
use serde_json::Value;
|
||||
|
||||
use crate::types::{FromSql, FromSqlError, FromSqlResult, ToSql, ToSqlOutput, ValueRef};
|
||||
use crate::Result;
|
||||
@@ -27,9 +26,9 @@ impl FromSql for Value {
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use super::serde_json;
|
||||
use crate::types::ToSql;
|
||||
use crate::{Connection, NO_PARAMS};
|
||||
use serde_json;
|
||||
|
||||
fn checked_memory_handle() -> Connection {
|
||||
let db = Connection::open_in_memory().unwrap();
|
||||
|
||||
@@ -36,8 +36,8 @@ impl FromSql for time::Timespec {
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use super::time;
|
||||
use crate::{Connection, Result, NO_PARAMS};
|
||||
use time;
|
||||
|
||||
fn checked_memory_handle() -> Connection {
|
||||
let db = Connection::open_in_memory().unwrap();
|
||||
|
||||
Reference in New Issue
Block a user