aboutsummaryrefslogtreecommitdiff
path: root/src/model/channel/guild_channel.rs
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-10-01 21:59:33 +0200
committeracdenisSK <[email protected]>2017-10-01 22:14:23 +0200
commit1bf4d9cb9823dca8c4bb77147c66eac2d53f609f (patch)
treeba14ca714fa7bc1e6ba1d26f10e7c170bdf10ffa /src/model/channel/guild_channel.rs
parentHave `ConnectionStage` derive Copy (diff)
downloadserenity-1bf4d9cb9823dca8c4bb77147c66eac2d53f609f.tar.xz
serenity-1bf4d9cb9823dca8c4bb77147c66eac2d53f609f.zip
`to_owned` -> `to_string`
Diffstat (limited to 'src/model/channel/guild_channel.rs')
-rw-r--r--src/model/channel/guild_channel.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/model/channel/guild_channel.rs b/src/model/channel/guild_channel.rs
index a6bc597..6cd3b72 100644
--- a/src/model/channel/guild_channel.rs
+++ b/src/model/channel/guild_channel.rs
@@ -313,14 +313,14 @@ impl GuildChannel {
}
let mut map = Map::new();
- map.insert("name".to_owned(), Value::String(self.name.clone()));
+ map.insert("name".to_string(), Value::String(self.name.clone()));
map.insert(
- "position".to_owned(),
+ "position".to_string(),
Value::Number(Number::from(self.position)),
);
map.insert(
- "type".to_owned(),
- Value::String(self.kind.name().to_owned()),
+ "type".to_string(),
+ Value::String(self.kind.name().to_string()),
);
let edited = f(EditChannel(map)).0;