Skip to content

Commit

Permalink
take cfg as param
Browse files Browse the repository at this point in the history
  • Loading branch information
MikailBag committed Jun 2, 2020
1 parent 241c5ab commit f6fc2a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/build/client_mod.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -213,17 +213,17 @@ pub mod client \{
};

impl Client \{
pub fn new() -> Client \{
pub fn new(cfg: ClientConfiguration) -> Client \{
Client \{
client: reqwest::Client::new(),
cfg: ClientConfiguration::new()
cfg
}
}
}

impl Default for Client \{
fn default() -> Client \{
Client::new()
Client::new(ClientConfiguration::new())
}
}

Expand Down

0 comments on commit f6fc2a8

Please sign in to comment.