From 2ccc8c527a6ec0054648ac6d51345201775611be Mon Sep 17 00:00:00 2001 From: baoyachi Date: Mon, 27 Sep 2021 11:49:20 +0800 Subject: [PATCH] cargo fmt --- src/driver/mock.rs | 4 ++-- src/entity/column.rs | 10 ++-------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/driver/mock.rs b/src/driver/mock.rs index f3bbe6f8..50248a54 100644 --- a/src/driver/mock.rs +++ b/src/driver/mock.rs @@ -1,6 +1,6 @@ use crate::{ - debug_print, error::*, DatabaseConnection, DbBackend, ExecResult, MockDatabase, - QueryResult, Statement, Transaction, + debug_print, error::*, DatabaseConnection, DbBackend, ExecResult, MockDatabase, QueryResult, + Statement, Transaction, }; use std::fmt::Debug; use std::sync::{ diff --git a/src/entity/column.rs b/src/entity/column.rs index 91d34bab..32500630 100644 --- a/src/entity/column.rs +++ b/src/entity/column.rs @@ -438,14 +438,8 @@ mod tests { impl ActiveModelBehavior for ActiveModel {} } - assert_eq!( - hello::Column::One.def(), - ColumnType::Integer.def() - ); - assert_eq!( - hello::Column::Two.def(), - ColumnType::Integer.def().unique() - ); + assert_eq!(hello::Column::One.def(), ColumnType::Integer.def()); + assert_eq!(hello::Column::Two.def(), ColumnType::Integer.def().unique()); assert_eq!( hello::Column::Three.def(), ColumnType::Integer.def().indexed()