diff options
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/context.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/client/context.rs b/src/client/context.rs index 4e4f6d1..b99dcfc 100644 --- a/src/client/context.rs +++ b/src/client/context.rs @@ -1316,11 +1316,7 @@ impl Context { M: Into<MessageId>, R: Into<ReactionType>, U: Into<UserId> { - let limit = limit.map(|x| if x > 100 { - 100 - } else { - x - }).unwrap_or(50); + let limit = limit.map_or(50, |x| if x > 100 { 100 } else { x }); rest::get_reaction_users(channel_id.into().0, message_id.into().0, |