diff options
| author | acdenisSK <[email protected]> | 2017-07-27 08:10:41 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-07-27 08:10:41 +0200 |
| commit | 70b5097aaac85f970c32ceb988dbb5f5d575ee0f (patch) | |
| tree | d2f391d3b552cfae58b74748a2a2aa5ae80c7986 /src/model/channel/reaction.rs | |
| parent | rustfmt (diff) | |
| download | serenity-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.rs | 30 |
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) + }) } } |