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/edit_channel.rs | |
| parent | Have `ConnectionStage` derive Copy (diff) | |
| download | serenity-0ce8be869eeb2eb700e22f71b2e00872cc96a500.tar.xz serenity-0ce8be869eeb2eb700e22f71b2e00872cc96a500.zip | |
`to_owned` -> `to_string`
Diffstat (limited to 'src/builder/edit_channel.rs')
| -rw-r--r-- | src/builder/edit_channel.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/builder/edit_channel.rs b/src/builder/edit_channel.rs index e3bf78e..1ed1551 100644 --- a/src/builder/edit_channel.rs +++ b/src/builder/edit_channel.rs @@ -28,7 +28,7 @@ impl EditChannel { /// [voice]: ../model/enum.ChannelType.html#variant.Voice pub fn bitrate(mut self, bitrate: u64) -> Self { self.0 - .insert("bitrate".to_owned(), Value::Number(Number::from(bitrate))); + .insert("bitrate".to_string(), Value::Number(Number::from(bitrate))); self } @@ -38,7 +38,7 @@ impl EditChannel { /// Must be between 2 and 100 characters long. pub fn name(mut self, name: &str) -> Self { self.0 - .insert("name".to_owned(), Value::String(name.to_owned())); + .insert("name".to_string(), Value::String(name.to_string())); self } @@ -46,7 +46,7 @@ impl EditChannel { /// The position of the channel in the channel list. pub fn position(mut self, position: u64) -> Self { self.0 - .insert("position".to_owned(), Value::Number(Number::from(position))); + .insert("position".to_string(), Value::Number(Number::from(position))); self } @@ -60,7 +60,7 @@ impl EditChannel { /// [text]: ../model/enum.ChannelType.html#variant.Text pub fn topic(mut self, topic: &str) -> Self { self.0 - .insert("topic".to_owned(), Value::String(topic.to_owned())); + .insert("topic".to_string(), Value::String(topic.to_string())); self } @@ -72,7 +72,7 @@ impl EditChannel { /// [voice]: ../model/enum.ChannelType.html#variant.Voice pub fn user_limit(mut self, user_limit: u64) -> Self { self.0.insert( - "user_limit".to_owned(), + "user_limit".to_string(), Value::Number(Number::from(user_limit)), ); |