diff --git a/lambda-runtime-api-client/Cargo.toml b/lambda-runtime-api-client/Cargo.toml index 08210678..8868b145 100644 --- a/lambda-runtime-api-client/Cargo.toml +++ b/lambda-runtime-api-client/Cargo.toml @@ -27,7 +27,6 @@ hyper-util = { workspace = true, features = [ "http1", "tokio", ] } -sync_wrapper = "0.1.2" tower = { workspace = true, features = ["util"] } tower-service = { workspace = true } tokio = { version = "1.0", features = ["io-util"] } diff --git a/lambda-runtime/Cargo.toml b/lambda-runtime/Cargo.toml index d12b2bbe..8a579d99 100644 --- a/lambda-runtime/Cargo.toml +++ b/lambda-runtime/Cargo.toml @@ -59,4 +59,4 @@ hyper-util = { workspace = true, features = [ "server-auto", "tokio", ] } -pin-project-lite = "*" \ No newline at end of file +pin-project-lite = { workspace = true } \ No newline at end of file diff --git a/lambda-runtime/src/simulated.rs b/lambda-runtime/src/simulated.rs index 3025b5a7..018664fe 100644 --- a/lambda-runtime/src/simulated.rs +++ b/lambda-runtime/src/simulated.rs @@ -1,6 +1,7 @@ use http::Uri; use hyper::rt::{Read, Write}; use hyper_util::client::legacy::connect::{Connected, Connection}; +use pin_project_lite::pin_project; use std::{ collections::HashMap, future::Future, @@ -16,7 +17,6 @@ use crate::Error; pub struct Connector { inner: Arc>>, } -use pin_project_lite::pin_project; pin_project! { pub struct DuplexStreamWrapper {