From 0d1d34877240884cf19c4da6b23c7e517af67b3f Mon Sep 17 00:00:00 2001 From: Mikail Bagishov Date: Tue, 2 Jun 2020 21:14:38 +0300 Subject: [PATCH] not consume builder --- src/build/client_mod.hbs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/build/client_mod.hbs b/src/build/client_mod.hbs index aeb7a8038..ba690f4e1 100644 --- a/src/build/client_mod.hbs +++ b/src/build/client_mod.hbs @@ -269,9 +269,9 @@ pub mod client \{ fn request_builder(&self, method: http::Method, rel_path: &str) -> Self::Request \{ let mut u = self.cfg.base_url.clone(); u.push_str(rel_path.trim_start_matches('/')); - let builder = self.client.request(method, &u); + let mut builder = self.client.request(method, &u); if let Some(key) = &self.cfg.api_key \{ - builder.header(key.header_name.as_str(), key.key.as_str()); + builder = builder.header(key.header_name.as_str(), key.key.as_str()); } builder }