From b2b87d58b041b9d9109fc12c37a62006ee6c96ff Mon Sep 17 00:00:00 2001 From: Sumeet Attree Date: Thu, 31 Aug 2023 15:59:38 +0530 Subject: [PATCH] Fix formatting --- src/query/on_conflict.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/query/on_conflict.rs b/src/query/on_conflict.rs index f6e9a8751..5db95b761 100644 --- a/src/query/on_conflict.rs +++ b/src/query/on_conflict.rs @@ -57,7 +57,10 @@ impl OnConflict { I: IntoIterator, { Self { - targets: columns.into_iter().map(|c| OnConflictTarget::ConflictColumn(c.into_iden())).collect(), + targets: columns + .into_iter() + .map(|c| OnConflictTarget::ConflictColumn(c.into_iden())) + .collect(), target_where: ConditionHolder::new(), action: None, action_where: ConditionHolder::new(), @@ -128,7 +131,12 @@ impl OnConflict { T: Into, I: IntoIterator, { - self.targets.append(&mut exprs.into_iter().map(|e: T| OnConflictTarget::ConflictExpr(e.into())).collect()); + self.targets.append( + &mut exprs + .into_iter() + .map(|e: T| OnConflictTarget::ConflictExpr(e.into())) + .collect(), + ); self }