diff options
| author | acdenisSK <[email protected]> | 2017-10-01 21:59:33 +0200 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-10-09 15:46:37 -0700 |
| commit | 0ce8be869eeb2eb700e22f71b2e00872cc96a500 (patch) | |
| tree | 03dd981bc04ba8475333d057705820c3320e3a97 /src/builder/execute_webhook.rs | |
| parent | Have `ConnectionStage` derive Copy (diff) | |
| download | serenity-0ce8be869eeb2eb700e22f71b2e00872cc96a500.tar.xz serenity-0ce8be869eeb2eb700e22f71b2e00872cc96a500.zip | |
`to_owned` -> `to_string`
Diffstat (limited to 'src/builder/execute_webhook.rs')
| -rw-r--r-- | src/builder/execute_webhook.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/builder/execute_webhook.rs b/src/builder/execute_webhook.rs index 0cb276c..ba1668e 100644 --- a/src/builder/execute_webhook.rs +++ b/src/builder/execute_webhook.rs @@ -75,8 +75,8 @@ impl ExecuteWebhook { /// ``` pub fn avatar_url(mut self, avatar_url: &str) -> Self { self.0.insert( - "avatar_url".to_owned(), - Value::String(avatar_url.to_owned()), + "avatar_url".to_string(), + Value::String(avatar_url.to_string()), ); self @@ -104,7 +104,7 @@ impl ExecuteWebhook { /// [`embeds`]: #method.embeds pub fn content(mut self, content: &str) -> Self { self.0 - .insert("content".to_owned(), Value::String(content.to_owned())); + .insert("content".to_string(), Value::String(content.to_string())); self } @@ -123,7 +123,7 @@ impl ExecuteWebhook { /// [`Webhook::execute`]: ../model/struct.Webhook.html#method.execute /// [struct-level documentation]: #examples pub fn embeds(mut self, embeds: Vec<Value>) -> Self { - self.0.insert("embeds".to_owned(), Value::Array(embeds)); + self.0.insert("embeds".to_string(), Value::Array(embeds)); self } @@ -144,7 +144,7 @@ impl ExecuteWebhook { /// } /// ``` pub fn tts(mut self, tts: bool) -> Self { - self.0.insert("tts".to_owned(), Value::Bool(tts)); + self.0.insert("tts".to_string(), Value::Bool(tts)); self } @@ -166,7 +166,7 @@ impl ExecuteWebhook { /// ``` pub fn username(mut self, username: &str) -> Self { self.0 - .insert("username".to_owned(), Value::String(username.to_owned())); + .insert("username".to_string(), Value::String(username.to_string())); self } @@ -191,7 +191,7 @@ impl Default for ExecuteWebhook { /// [`tts`]: #method.tts fn default() -> ExecuteWebhook { let mut map = Map::new(); - map.insert("tts".to_owned(), Value::Bool(false)); + map.insert("tts".to_string(), Value::Bool(false)); ExecuteWebhook(map) } |