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/model/webhook.rs | |
| parent | Have `ConnectionStage` derive Copy (diff) | |
| download | serenity-0ce8be869eeb2eb700e22f71b2e00872cc96a500.tar.xz serenity-0ce8be869eeb2eb700e22f71b2e00872cc96a500.zip | |
`to_owned` -> `to_string`
Diffstat (limited to 'src/model/webhook.rs')
| -rw-r--r-- | src/model/webhook.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/model/webhook.rs b/src/model/webhook.rs index 5e10d90..c8ae1b0 100644 --- a/src/model/webhook.rs +++ b/src/model/webhook.rs @@ -108,17 +108,17 @@ impl Webhook { if let Some(avatar) = avatar { map.insert( - "avatar".to_owned(), + "avatar".to_string(), if avatar.is_empty() { Value::Null } else { - Value::String(avatar.to_owned()) + Value::String(avatar.to_string()) }, ); } if let Some(name) = name { - map.insert("name".to_owned(), Value::String(name.to_owned())); + map.insert("name".to_string(), Value::String(name.to_string())); } match http::edit_webhook_with_token(self.id.0, &self.token, &map) { |