cargo fmt
This commit is contained in:
parent
f5db10d6a6
commit
106d38d20b
@ -66,7 +66,8 @@ async fn find_all(db: &DbConn) -> Result<(), DbErr> {
|
|||||||
async fn find_together(db: &DbConn) -> Result<(), DbErr> {
|
async fn find_together(db: &DbConn) -> Result<(), DbErr> {
|
||||||
print!("find cakes and fruits: ");
|
print!("find cakes and fruits: ");
|
||||||
|
|
||||||
let both: Vec<(cake::Model, Option<fruit::Model>)> = Cake::find().find_also_related(Fruit).all(db).await?;
|
let both: Vec<(cake::Model, Option<fruit::Model>)> =
|
||||||
|
Cake::find().find_also_related(Fruit).all(db).await?;
|
||||||
|
|
||||||
println!();
|
println!();
|
||||||
for bb in both.iter() {
|
for bb in both.iter() {
|
||||||
|
@ -404,4 +404,4 @@ impl TryGetable for Option<Decimal> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "with-uuid")]
|
#[cfg(feature = "with-uuid")]
|
||||||
try_getable_all!(uuid::Uuid);
|
try_getable_all!(uuid::Uuid);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user