From 5a6d9314cccca8d79225e28f86b261ea080d37e4 Mon Sep 17 00:00:00 2001 From: _ <> Date: Sat, 3 Apr 2021 15:23:03 +0000 Subject: [PATCH] :rotating_light: refactor: appease clippy --- Cargo.toml | 3 +-- crates/debug_proxy/src/lib.rs | 6 +++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 230059f..82591a2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,6 +30,7 @@ tokio = { version = "1.4.0", features = ["full"] } tracing-subscriber = "0.2.16" tracing = "0.1.25" +debug_proxy = { path = "crates/debug_proxy" } ptth_relay = { path = "crates/ptth_relay" } ptth_server = { path = "crates/ptth_server" } @@ -38,8 +39,6 @@ ptth_server = { path = "crates/ptth_server" } base64 = "0.13.0" chrono = {version = "0.4.19", features = ["serde"]} -debug_proxy = { path = "crates/debug_proxy" } - [workspace] members = [ diff --git a/crates/debug_proxy/src/lib.rs b/crates/debug_proxy/src/lib.rs index 7dc49c8..11fbcf0 100644 --- a/crates/debug_proxy/src/lib.rs +++ b/crates/debug_proxy/src/lib.rs @@ -53,6 +53,8 @@ impl ProxyFilter for PassthroughFilter { } } + let _bytes_transferred = bytes_transferred; + Ok (()) } } @@ -61,7 +63,7 @@ struct RequestBodyDropFilter {} #[async_trait] impl ProxyFilter for RequestBodyDropFilter { - async fn request_body (&self, mut body: Body, tx: mpsc::Sender >) -> anyhow::Result <()> { + async fn request_body (&self, mut body: Body, _tx: mpsc::Sender >) -> anyhow::Result <()> { let mut bytes_transferred = 0; loop { @@ -80,6 +82,8 @@ impl ProxyFilter for RequestBodyDropFilter { } } + let _bytes_transferred = bytes_transferred; + Ok (()) } }