cargo fmt

This commit is contained in:
baoyachi 2021-09-27 11:49:20 +08:00
parent 86f2d7e327
commit 2ccc8c527a
2 changed files with 4 additions and 10 deletions

View File

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

View File

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