diff options
| author | acdenisSK <[email protected]> | 2017-10-03 16:55:58 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-10-03 16:55:58 +0200 |
| commit | 2233337d334e52b5c4cf7149097e70ef5c5433b3 (patch) | |
| tree | ba14ca714fa7bc1e6ba1d26f10e7c170bdf10ffa /src/builder/create_message.rs | |
| parent | Use the de-generification trick. (diff) | |
| download | serenity-2233337d334e52b5c4cf7149097e70ef5c5433b3.tar.xz serenity-2233337d334e52b5c4cf7149097e70ef5c5433b3.zip | |
Revert "Use the de-generification trick."
Makes the compiliation time just a bit worse
Diffstat (limited to 'src/builder/create_message.rs')
| -rw-r--r-- | src/builder/create_message.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/builder/create_message.rs b/src/builder/create_message.rs index 123c0b5..96bad82 100644 --- a/src/builder/create_message.rs +++ b/src/builder/create_message.rs @@ -75,11 +75,7 @@ impl CreateMessage { /// Adds a list of reactions to create after the message's sent. pub fn reactions<R: Into<ReactionType>>(mut self, reactions: Vec<R>) -> Self { - self._reactions(reactions.into_iter().map(|r| r.into()).collect()) - } - - fn _reactions(mut self, reactions: Vec<ReactionType>) -> Self { - self.1 = Some(reactions); + self.1 = Some(reactions.into_iter().map(|r| r.into()).collect()); CreateMessage(self.0, self.1) } |