diff --git a/bb8/tests/test.rs b/bb8/tests/test.rs index 9e78808..178e8d3 100644 --- a/bb8/tests/test.rs +++ b/bb8/tests/test.rs @@ -208,16 +208,11 @@ fn test_is_send_sync() { } // A connection manager that always returns `true` for `has_broken()` +#[derive(Default)] struct BrokenConnectionManager { _c: PhantomData, } -impl BrokenConnectionManager { - fn new() -> Self { - BrokenConnectionManager { _c: PhantomData } - } -} - #[async_trait] impl ManageConnection for BrokenConnectionManager { type Connection = C; @@ -250,7 +245,7 @@ async fn test_drop_on_broken() { } let pool = Pool::builder() - .build(BrokenConnectionManager::::new()) + .build(BrokenConnectionManager::::default()) .await .unwrap();