Skip to content

Commit 6ddf318

Browse files
committed
Run rustfmt
1 parent 0fdc4c4 commit 6ddf318

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

sqlx-core/src/pool/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
//! **Pool** for SQLx database connections.
22
33
use std::{
4-
fmt,
5-
mem,
4+
fmt, mem,
65
ops::{Deref, DerefMut},
76
sync::Arc,
87
time::{Duration, Instant},

sqlx-core/src/transaction.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ use async_std::task;
44
use futures_core::future::BoxFuture;
55
use futures_core::stream::BoxStream;
66

7+
use crate::connection::Connection;
78
use crate::database::Database;
89
use crate::describe::Describe;
910
use crate::executor::Executor;
10-
use crate::connection::Connection;
1111

1212
pub struct Transaction<T>
1313
where
@@ -96,15 +96,13 @@ where
9696
}
9797
}
9898

99-
impl<T> Connection for Transaction<T>
100-
where
101-
T: Connection
99+
impl<T> Connection for Transaction<T>
100+
where
101+
T: Connection,
102102
{
103103
// Close is equivalent to ROLLBACK followed by CLOSE
104104
fn close(self) -> BoxFuture<'static, crate::Result<()>> {
105-
Box::pin(async move {
106-
self.rollback().await?.close().await
107-
})
105+
Box::pin(async move { self.rollback().await?.close().await })
108106
}
109107
}
110108

0 commit comments

Comments
 (0)