Skip to content

Commit

Permalink
borrow
Browse files Browse the repository at this point in the history
  • Loading branch information
MikailBag committed Jun 3, 2020
1 parent 285d628 commit 7a04730
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/build/client_mod.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ pub mod client \{
let mut u = self.cfg.base_url.clone();
u.push_str(rel_path.trim_start_matches('/'));
let builder = self.client.request(method, &u);
if let Some(key) = self.cfg.api_key \{
if let Some(key) = &self.cfg.api_key \{
builder.header(key.header_name.as_str(), key.key.as_str());
}
builder
Expand Down

0 comments on commit 7a04730

Please sign in to comment.