awc: Rename Client::build to Client::builder

This commit is contained in:
Igor Aleksanov 2020-09-10 20:48:32 +03:00
parent 22089aff87
commit 59fe1095a8
3 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,8 @@
# Changes # Changes
## Unreleased - 2020-xx-xx ## Unreleased - 2020-xx-xx
### Changed
* `Client::build` was renamed to `Client::builder`.
## 2.0.0-beta.4 - 2020-09-09 ## 2.0.0-beta.4 - 2020-09-09

View File

@ -166,8 +166,9 @@ impl Client {
Client::default() Client::default()
} }
/// Build client instance. /// Create a [ClientBuilder] to configure `Client`.
pub fn build() -> ClientBuilder { /// This function is equivalent of `ClientBuilder::new()`.
pub fn builder() -> ClientBuilder {
ClientBuilder::new() ClientBuilder::new()
} }

View File

@ -822,7 +822,7 @@ where
} }
}; };
Client::build().connector(connector).finish() Client::builder().connector(connector).finish()
}; };
TestServer { TestServer {