diff --git a/src/drivers/postgres.rs b/src/drivers/postgres.rs index 9144f3c..77a3ce3 100644 --- a/src/drivers/postgres.rs +++ b/src/drivers/postgres.rs @@ -55,4 +55,4 @@ impl DatabaseDriver for PostgresDriver { fn random(&self) -> String { String::from(" RANDOM()") } -} \ No newline at end of file +} diff --git a/src/drivers/sqlite.rs b/src/drivers/sqlite.rs index c045c71..bc84e48 100644 --- a/src/drivers/sqlite.rs +++ b/src/drivers/sqlite.rs @@ -5,21 +5,21 @@ //! Contains database-specific query data use super::*; -use slite::{params, Connection, Result}; use slite::NO_PARAMS; +use slite::{params, Connection, Result}; use std::cell::RefCell; /// The struct implementing the `DatabaseDriver` trait #[derive(Debug)] pub struct SQLiteDriver { - connection: RefCell> + connection: RefCell>, } impl SQLiteDriver { /// Create an SQLiteDriver driver pub fn new(dsn: &str) -> Self { let mut driver = SQLiteDriver { - connection: RefCell::new(None) + connection: RefCell::new(None), }; driver.connect(dsn); diff --git a/src/query_builder.rs b/src/query_builder.rs index 7bd382d..488e8f6 100644 --- a/src/query_builder.rs +++ b/src/query_builder.rs @@ -917,12 +917,7 @@ impl QueryState { self } - fn append_query_map( - &mut self, - clause_type: QueryClauseType, - conj: &str, - s: &str, - ) -> &mut Self { + fn append_query_map(&mut self, clause_type: QueryClauseType, conj: &str, s: &str) -> &mut Self { let conj = if self.query_map.len() == 0 { " WHERE " } else { diff --git a/src/types.rs b/src/types.rs index 1d4fb5f..b3fadae 100644 --- a/src/types.rs +++ b/src/types.rs @@ -68,7 +68,7 @@ pub enum Value { /// A borrowed value #[derive(Copy, Clone, Debug, PartialEq)] -pub enum ValueRef<'a> { +pub enum ValueRef<'a> { Null, Integer(i64), Real(f64),