From e0538b3e98c231ec626ce81fb98f963caa7d6958 Mon Sep 17 00:00:00 2001 From: dalance Date: Wed, 15 Jun 2022 14:22:00 +0900 Subject: [PATCH] Fix "warning: field is never read" --- src/docker.rs | 1 + src/hyper_client.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/docker.rs b/src/docker.rs index 194e6dc..b1e2231 100644 --- a/src/docker.rs +++ b/src/docker.rs @@ -70,6 +70,7 @@ pub struct Docker { /// http client client: HyperClient, /// connection protocol + #[allow(dead_code)] protocol: Protocol, /// http headers used for any requests headers: HeaderMap, diff --git a/src/hyper_client.rs b/src/hyper_client.rs index 2fa3e25..c263947 100644 --- a/src/hyper_client.rs +++ b/src/hyper_client.rs @@ -36,6 +36,7 @@ pub struct Response { pub status: StatusCode, buf: Vec, rx: futures::channel::mpsc::UnboundedReceiver, + #[allow(dead_code)] handle: std::thread::JoinHandle<()>, }