Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sumeetattree committed Aug 31, 2023
1 parent ab67be6 commit b2b87d5
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/query/on_conflict.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ impl OnConflict {
I: IntoIterator<Item = C>,
{
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(),
Expand Down Expand Up @@ -128,7 +131,12 @@ impl OnConflict {
T: Into<SimpleExpr>,
I: IntoIterator<Item = T>,
{
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
}

Expand Down

0 comments on commit b2b87d5

Please sign in to comment.