Add must_use to ClientBuilder & RequestBuilder (#1011)

This commit is contained in:
Zac Pullar-Strecker
2020-08-22 03:58:53 +12:00
committed by GitHub
parent d42385e7f2
commit db24d54097
4 changed files with 4 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ pub struct Request {
/// A builder to construct the properties of a `Request`.
#[derive(Debug)]
#[must_use = "RequestBuilder does nothing until you 'send' it"]
pub struct RequestBuilder {
client: Client,
request: crate::Result<Request>,