diff options
| author | Zeyla Hellyer <[email protected]> | 2017-09-18 17:48:52 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-09-18 17:48:52 -0700 |
| commit | dae2cb77b407044f44a7a2790d93efba3891854e (patch) | |
| tree | bef263c4490536cf8b56e988e71dd1aa43bc2696 /src/builder/execute_webhook.rs | |
| parent | Fix compiles of a variety of feature combinations (diff) | |
| download | serenity-dae2cb77b407044f44a7a2790d93efba3891854e.tar.xz serenity-dae2cb77b407044f44a7a2790d93efba3891854e.zip | |
Apply rustfmt
Diffstat (limited to 'src/builder/execute_webhook.rs')
| -rw-r--r-- | src/builder/execute_webhook.rs | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/builder/execute_webhook.rs b/src/builder/execute_webhook.rs index 05f0d00..0cb276c 100644 --- a/src/builder/execute_webhook.rs +++ b/src/builder/execute_webhook.rs @@ -103,10 +103,8 @@ impl ExecuteWebhook { /// /// [`embeds`]: #method.embeds pub fn content(mut self, content: &str) -> Self { - self.0.insert( - "content".to_owned(), - Value::String(content.to_owned()), - ); + self.0 + .insert("content".to_owned(), Value::String(content.to_owned())); self } @@ -167,10 +165,8 @@ impl ExecuteWebhook { /// } /// ``` pub fn username(mut self, username: &str) -> Self { - self.0.insert( - "username".to_owned(), - Value::String(username.to_owned()), - ); + self.0 + .insert("username".to_owned(), Value::String(username.to_owned())); self } |