Skip to content

Commit

Permalink
code fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
KKould committed Dec 1, 2023
1 parent cbc1482 commit 21e8536
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ async fn main() -> Result<(), DatabaseError> {
let _ = tx_1
.run("create table if not exists t1 (c1 int primary key, c2 int)")
.await?;
let _ = tx_1
.run("insert into t1 values(0, 0), (1, 1)")
.await?;
let _ = tx_1.run("insert into t1 values(0, 0), (1, 1)").await?;

assert!(database.run("select * from t1").await.is_err());

Expand All @@ -21,4 +19,4 @@ async fn main() -> Result<(), DatabaseError> {
let _ = database.run("drop table t1").await?;

Ok(())
}
}

0 comments on commit 21e8536

Please sign in to comment.