aboutsummaryrefslogtreecommitdiff
path: root/src/model/channel/reaction.rs
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-10-03 16:55:58 +0200
committerZeyla Hellyer <[email protected]>2017-10-09 15:47:48 -0700
commit06dc6937bd3d4e5912de08e4ac3630a1f83b7f5a (patch)
treeeee16dc9d1c35e2b17a0a59d55cc85fa82726587 /src/model/channel/reaction.rs
parentUse the de-generification trick. (diff)
downloadserenity-06dc6937bd3d4e5912de08e4ac3630a1f83b7f5a.tar.xz
serenity-06dc6937bd3d4e5912de08e4ac3630a1f83b7f5a.zip
Revert "Use the de-generification trick."
Makes the compiliation time just a bit worse
Diffstat (limited to 'src/model/channel/reaction.rs')
-rw-r--r--src/model/channel/reaction.rs12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/model/channel/reaction.rs b/src/model/channel/reaction.rs
index 976ea3d..8edc2e9 100644
--- a/src/model/channel/reaction.rs
+++ b/src/model/channel/reaction.rs
@@ -106,20 +106,12 @@ impl Reaction {
after: Option<U>)
-> Result<Vec<User>>
where R: Into<ReactionType>, U: Into<UserId> {
- self._users(reaction_type.into(), limit, after.map(|u| u.into()))
- }
-
- fn _users(&self,
- reaction_type: ReactionType,
- limit: Option<u8>,
- after: Option<UserId>)
- -> Result<Vec<User>> {
http::get_reaction_users(
self.channel_id.0,
self.message_id.0,
- &reaction_type,
+ &reaction_type.into(),
limit.unwrap_or(50),
- after.map(|u| u.0),
+ after.map(|u| u.into().0),
)
}
}