Skip to content

Commit

Permalink
Merge pull request #90 from rhuffus/feature/connection-manager-debug-…
Browse files Browse the repository at this point in the history
…impl

Add Debug implementation for AsyncDieselConnectionManager.
  • Loading branch information
weiznich committed Jul 7, 2023
2 parents b95650f + 4a0a646 commit 1f68c04
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/pooled_connection/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,16 @@ pub struct AsyncDieselConnectionManager<C> {
connection_url: String,
}

impl<C> fmt::Debug for AsyncDieselConnectionManager<C> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(
f,
"AsyncDieselConnectionManager<{}>",
std::any::type_name::<C>()
)
}
}

impl<C> AsyncDieselConnectionManager<C> {
/// Returns a new connection manager,
/// which establishes connections to the given database URL.
Expand Down

0 comments on commit 1f68c04

Please sign in to comment.