diff --git a/src/sql/pool.rs b/src/sql/pool.rs index 8e8f9602c..133c72ae2 100644 --- a/src/sql/pool.rs +++ b/src/sql/pool.rs @@ -1,6 +1,5 @@ //! Connection pool. -use std::fmt; use std::ops::{Deref, DerefMut}; use std::sync::{Arc, Weak}; @@ -9,6 +8,7 @@ use rusqlite::Connection; use tokio::sync::Notify; /// Inner connection pool. +#[derive(Debug)] struct InnerPool { /// Available connections. connections: ArrayQueue, @@ -64,18 +64,12 @@ impl DerefMut for PooledConnection { } /// Connection pool. -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct Pool { /// Reference to the actual connection pool. inner: Arc, } -impl fmt::Debug for Pool { - fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { - write!(fmt, "Pool") - } -} - impl Pool { /// Creates a new connection pool. pub fn new(connections: Vec) -> Self {