From 106c307d85e0f5bec4721e88f6656bc44b5490d0 Mon Sep 17 00:00:00 2001 From: fakeshadow <24548779@qq.com> Date: Tue, 26 Jan 2021 03:00:19 -0800 Subject: [PATCH] remove unwanted comments --- awc/src/response.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/awc/src/response.rs b/awc/src/response.rs index 9762f770b..5d8c3f245 100644 --- a/awc/src/response.rs +++ b/awc/src/response.rs @@ -27,8 +27,6 @@ pub struct ClientResponse { pub(crate) timeout: ResponseTimeout, } -// a helper enum for response timeout for reusing the boxed sleep. -// It's pass from `SendClientRequest`. pub(crate) enum ResponseTimeout { Disabled(Option>>), Enabled(Option>>), @@ -177,9 +175,6 @@ impl ClientResponse { } } - // this method does not enable timeout. It's used to pass the boxed Sleep from - // `SendClientRequest` and reuse it's heap allocation together with it's slot - // in timer wheel. pub(crate) fn _timeout(mut self, timeout: Option>>) -> Self { self.timeout = ResponseTimeout::Disabled(timeout); self