aboutsummaryrefslogtreecommitdiff
path: root/src/builder/execute_webhook.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/builder/execute_webhook.rs')
-rw-r--r--src/builder/execute_webhook.rs12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/builder/execute_webhook.rs b/src/builder/execute_webhook.rs
index 0cb276c..05f0d00 100644
--- a/src/builder/execute_webhook.rs
+++ b/src/builder/execute_webhook.rs
@@ -103,8 +103,10 @@ 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
}
@@ -165,8 +167,10 @@ 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
}