diff options
| author | acdenisSK <[email protected]> | 2017-10-01 21:59:33 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-10-01 22:14:23 +0200 |
| commit | 1bf4d9cb9823dca8c4bb77147c66eac2d53f609f (patch) | |
| tree | ba14ca714fa7bc1e6ba1d26f10e7c170bdf10ffa /src/model/webhook.rs | |
| parent | Have `ConnectionStage` derive Copy (diff) | |
| download | serenity-1bf4d9cb9823dca8c4bb77147c66eac2d53f609f.tar.xz serenity-1bf4d9cb9823dca8c4bb77147c66eac2d53f609f.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) { |