Skip to content

Commit

Permalink
Fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
augustuswm committed Dec 9, 2024
1 parent 888b65d commit 28457ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/customize_connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ struct ConnectionCustomizer {}
type DieselPgConn = Connection<PgConnection>;

impl bb8::CustomizeConnection<DieselPgConn, ConnectionError> for ConnectionCustomizer {
fn on_acquire<'a>(&'a self, connection: &'a mut DieselPgConn) -> Pin<Box<dyn Future<Output = Result<(), ConnectionError>> + Send + 'a>> {
fn on_acquire<'a>(
&'a self,
connection: &'a mut DieselPgConn,
) -> Pin<Box<dyn Future<Output = Result<(), ConnectionError>> + Send + 'a>> {
Box::pin(async move {
let res = connection
.batch_execute_async("please execute some raw sql for me")
Expand Down

0 comments on commit 28457ff

Please sign in to comment.