Skip to content

Commit 7150f7c

Browse files
committed
Clean up docstring for CustomizeConnection::on_acquire()
1 parent 41e5ec1 commit 7150f7c

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

bb8/src/api.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -273,13 +273,9 @@ pub trait CustomizeConnection<C: Send + 'static, E: 'static>:
273273
/// Called with connections immediately after they are returned from
274274
/// `ManageConnection::connect`.
275275
///
276-
/// The default implementation simply returns `Ok(())`.
277-
///
278-
/// # Errors
279-
///
280-
/// If this method returns an error, the connection will be discarded.
281-
#[allow(unused_variables)]
282-
async fn on_acquire(&self, connection: &mut C) -> Result<(), E> {
276+
/// The default implementation simply returns `Ok(())`. If this method returns an
277+
/// error, it will be forwarded to the configured error sink.
278+
async fn on_acquire(&self, _connection: &mut C) -> Result<(), E> {
283279
Ok(())
284280
}
285281
}

0 commit comments

Comments
 (0)