aboutsummaryrefslogtreecommitdiff
path: root/src/builder/edit_channel.rs
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-08-18 16:14:32 -0700
committerZeyla Hellyer <[email protected]>2017-08-18 17:52:53 -0700
commite4113570967a1fb13539efbfa2cf7285b19d95ba (patch)
tree06bb020fcfaa5f8323454dfb525272314a900186 /src/builder/edit_channel.rs
parentMove Clippy lints to a cfg_attr (diff)
downloadserenity-e4113570967a1fb13539efbfa2cf7285b19d95ba.tar.xz
serenity-e4113570967a1fb13539efbfa2cf7285b19d95ba.zip
Apply rustfmt
Diffstat (limited to 'src/builder/edit_channel.rs')
-rw-r--r--src/builder/edit_channel.rs24
1 files changed, 16 insertions, 8 deletions
diff --git a/src/builder/edit_channel.rs b/src/builder/edit_channel.rs
index e3bf78e..a5d799f 100644
--- a/src/builder/edit_channel.rs
+++ b/src/builder/edit_channel.rs
@@ -27,8 +27,10 @@ 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
}
@@ -37,16 +39,20 @@ 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
}
@@ -59,8 +65,10 @@ 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
}