From b137d190216ce9233c16929f250d008a95902bec Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Fri, 9 May 2025 22:21:37 -0400 Subject: [PATCH] Update deadpool to 0.12 - Removes the async-trait dependency --- Cargo.toml | 3 +-- src/mock_server/pool.rs | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5caa2d9..8a6b500 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,8 +29,7 @@ http-body-util = "0.1" hyper = { version = "1.0", features = ["full"] } hyper-util = { version = "0.1", features = ["tokio", "server", "http1", "http2"] } tokio = { version = "1.5.0", features = ["rt", "macros"] } -deadpool = "0.10.0" -async-trait = "0.1" +deadpool = "0.12.0" once_cell = "1" assert-json-diff = "2.0.1" base64 = "0.22" diff --git a/src/mock_server/pool.rs b/src/mock_server/pool.rs index 6cea1b6..50644f4 100644 --- a/src/mock_server/pool.rs +++ b/src/mock_server/pool.rs @@ -1,6 +1,5 @@ use crate::mock_server::bare_server::BareMockServer; use crate::MockServer; -use async_trait::async_trait; use deadpool::managed::{Metrics, Object, Pool}; use once_cell::sync::Lazy; use std::convert::Infallible; @@ -52,7 +51,6 @@ pub(crate) async fn get_pooled_mock_server() -> PooledMockServer { #[derive(Debug)] pub(crate) struct MockServerPoolManager; -#[async_trait] impl deadpool::managed::Manager for MockServerPoolManager { type Error = Infallible; type Type = BareMockServer;