🚨 refactor: appease clippy

main
_ 2021-04-03 15:23:03 +00:00
parent 0821ccaac6
commit 5a6d9314cc
2 changed files with 6 additions and 3 deletions

View File

@ -30,6 +30,7 @@ tokio = { version = "1.4.0", features = ["full"] }
tracing-subscriber = "0.2.16" tracing-subscriber = "0.2.16"
tracing = "0.1.25" tracing = "0.1.25"
debug_proxy = { path = "crates/debug_proxy" }
ptth_relay = { path = "crates/ptth_relay" } ptth_relay = { path = "crates/ptth_relay" }
ptth_server = { path = "crates/ptth_server" } ptth_server = { path = "crates/ptth_server" }
@ -38,8 +39,6 @@ ptth_server = { path = "crates/ptth_server" }
base64 = "0.13.0" base64 = "0.13.0"
chrono = {version = "0.4.19", features = ["serde"]} chrono = {version = "0.4.19", features = ["serde"]}
debug_proxy = { path = "crates/debug_proxy" }
[workspace] [workspace]
members = [ members = [

View File

@ -53,6 +53,8 @@ impl ProxyFilter for PassthroughFilter {
} }
} }
let _bytes_transferred = bytes_transferred;
Ok (()) Ok (())
} }
} }
@ -61,7 +63,7 @@ struct RequestBodyDropFilter {}
#[async_trait] #[async_trait]
impl ProxyFilter for RequestBodyDropFilter { impl ProxyFilter for RequestBodyDropFilter {
async fn request_body (&self, mut body: Body, tx: mpsc::Sender <Result <Bytes, hyper::Error>>) -> anyhow::Result <()> { async fn request_body (&self, mut body: Body, _tx: mpsc::Sender <Result <Bytes, hyper::Error>>) -> anyhow::Result <()> {
let mut bytes_transferred = 0; let mut bytes_transferred = 0;
loop { loop {
@ -80,6 +82,8 @@ impl ProxyFilter for RequestBodyDropFilter {
} }
} }
let _bytes_transferred = bytes_transferred;
Ok (()) Ok (())
} }
} }