Skip to content

Commit 4a0a646

Browse files
author
Rafa Hernandez Novillo
committed
Add Debug implementation for AsyncDieselConnectionManager.
1 parent b95650f commit 4a0a646

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/pooled_connection/mod.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,16 @@ pub struct AsyncDieselConnectionManager<C> {
5555
connection_url: String,
5656
}
5757

58+
impl<C> fmt::Debug for AsyncDieselConnectionManager<C> {
59+
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
60+
write!(
61+
f,
62+
"AsyncDieselConnectionManager<{}>",
63+
std::any::type_name::<C>()
64+
)
65+
}
66+
}
67+
5868
impl<C> AsyncDieselConnectionManager<C> {
5969
/// Returns a new connection manager,
6070
/// which establishes connections to the given database URL.

0 commit comments

Comments
 (0)