Remove turbofish
This commit is contained in:
parent
0db9021da0
commit
cd43ff7143
@ -8,7 +8,7 @@ pub mod common;
|
|||||||
pub use common::{bakery_chain::*, setup::*, TestContext};
|
pub use common::{bakery_chain::*, setup::*, TestContext};
|
||||||
|
|
||||||
// Run the test locally:
|
// Run the test locally:
|
||||||
// DATABASE_URL="mysql://root:@localhost" cargo test --features sqlx-mysql,runtime-async-std --test relational_tests
|
// DATABASE_URL="mysql://root:@localhost" cargo test --features sqlx-mysql,runtime-async-std-native-tls --test relational_tests
|
||||||
#[sea_orm_macros::test]
|
#[sea_orm_macros::test]
|
||||||
#[cfg(any(
|
#[cfg(any(
|
||||||
feature = "sqlx-mysql",
|
feature = "sqlx-mysql",
|
||||||
@ -662,7 +662,7 @@ pub async fn linked() -> Result<(), DbErr> {
|
|||||||
name: String,
|
name: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
let baked_for_customers = Baker::find()
|
let baked_for_customers: Vec<(BakerLite, Option<CustomerLite>)> = Baker::find()
|
||||||
.find_also_linked(baker::BakedForCustomer)
|
.find_also_linked(baker::BakedForCustomer)
|
||||||
.select_only()
|
.select_only()
|
||||||
.column_as_prefixed(baker::Column::Name, "A_", baker::Column::Name)
|
.column_as_prefixed(baker::Column::Name, "A_", baker::Column::Name)
|
||||||
@ -673,7 +673,7 @@ pub async fn linked() -> Result<(), DbErr> {
|
|||||||
.group_by(customer::Column::Name)
|
.group_by(customer::Column::Name)
|
||||||
.order_by_asc(baker::Column::Id)
|
.order_by_asc(baker::Column::Id)
|
||||||
.order_by_asc(customer::Column::Id)
|
.order_by_asc(customer::Column::Id)
|
||||||
.into_model::<BakerLite, CustomerLite>()
|
.into_model()
|
||||||
.all(&ctx.db)
|
.all(&ctx.db)
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user