aboutsummaryrefslogtreecommitdiff
path: root/src/builder/edit_channel.rs
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-09-18 17:48:52 -0700
committerZeyla Hellyer <[email protected]>2017-09-18 17:48:52 -0700
commitdae2cb77b407044f44a7a2790d93efba3891854e (patch)
treebef263c4490536cf8b56e988e71dd1aa43bc2696 /src/builder/edit_channel.rs
parentFix compiles of a variety of feature combinations (diff)
downloadserenity-dae2cb77b407044f44a7a2790d93efba3891854e.tar.xz
serenity-dae2cb77b407044f44a7a2790d93efba3891854e.zip
Apply rustfmt
Diffstat (limited to 'src/builder/edit_channel.rs')
-rw-r--r--src/builder/edit_channel.rs24
1 files changed, 8 insertions, 16 deletions
diff --git a/src/builder/edit_channel.rs b/src/builder/edit_channel.rs
index a5d799f..e3bf78e 100644
--- a/src/builder/edit_channel.rs
+++ b/src/builder/edit_channel.rs
@@ -27,10 +27,8 @@ 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)),
- );
+ self.0
+ .insert("bitrate".to_owned(), Value::Number(Number::from(bitrate)));
self
}
@@ -39,20 +37,16 @@ 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()),
- );
+ self.0
+ .insert("name".to_owned(), Value::String(name.to_owned()));
self
}
/// 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)),
- );
+ self.0
+ .insert("position".to_owned(), Value::Number(Number::from(position)));
self
}
@@ -65,10 +59,8 @@ 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()),
- );
+ self.0
+ .insert("topic".to_owned(), Value::String(topic.to_owned()));
self
}