This commit is contained in:
Chris Tsang 2023-06-20 17:59:58 +08:00
parent 20312b776d
commit f7398d1c5c

View File

@ -37,7 +37,7 @@ pub async fn test(db: &DbConn) {
assert!(matches!(res, TryInsertResult::Inserted(_)));
let empty_insert = Bakery::insert_many(std::iter::empty())
let empty_insert = Bakery::insert_many(std::iter::empty::<bakery::ActiveModel>())
.on_empty_do_nothing()
.exec(db)
.await;