aboutsummaryrefslogtreecommitdiff
path: root/src/model/channel/reaction.rs
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-07-27 08:10:41 +0200
committeracdenisSK <[email protected]>2017-07-27 08:10:41 +0200
commit70b5097aaac85f970c32ceb988dbb5f5d575ee0f (patch)
treed2f391d3b552cfae58b74748a2a2aa5ae80c7986 /src/model/channel/reaction.rs
parentrustfmt (diff)
downloadserenity-70b5097aaac85f970c32ceb988dbb5f5d575ee0f.tar.xz
serenity-70b5097aaac85f970c32ceb988dbb5f5d575ee0f.zip
Change the config a bit, and a few nitpicks
Diffstat (limited to 'src/model/channel/reaction.rs')
-rw-r--r--src/model/channel/reaction.rs30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/model/channel/reaction.rs b/src/model/channel/reaction.rs
index 5ecb038..ac522a0 100644
--- a/src/model/channel/reaction.rs
+++ b/src/model/channel/reaction.rs
@@ -103,14 +103,14 @@ impl Reaction {
limit: Option<u8>,
after: Option<U>)
-> Result<Vec<User>>
- where
- R: Into<ReactionType>,
- U: Into<UserId>, {
- http::get_reaction_users(self.channel_id.0,
- self.message_id.0,
- &reaction_type.into(),
- limit.unwrap_or(50),
- after.map(|u| u.into().0))
+ where R: Into<ReactionType>, U: Into<UserId> {
+ http::get_reaction_users(
+ self.channel_id.0,
+ self.message_id.0,
+ &reaction_type.into(),
+ limit.unwrap_or(50),
+ after.map(|u| u.into().0),
+ )
}
}
@@ -205,13 +205,13 @@ impl<'de> Deserialize<'de> for ReactionType {
let name = name.ok_or_else(|| DeError::missing_field("name"))?;
Ok(if let Some(id) = id {
- ReactionType::Custom {
- id: id,
- name: name,
- }
- } else {
- ReactionType::Unicode(name)
- })
+ ReactionType::Custom {
+ id: id,
+ name: name,
+ }
+ } else {
+ ReactionType::Unicode(name)
+ })
}
}