diff options
| author | François Triquet <[email protected]> | 2017-10-04 08:41:54 +0200 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-10-09 15:47:48 -0700 |
| commit | b14650193342297746f985f8794e4b93ceeac52b (patch) | |
| tree | e43c3b95c22746e7b9ef26cdc9431326a3b384c8 /src/builder/create_message.rs | |
| parent | Force `I` to be not implemented outside serenity (diff) | |
| download | serenity-b14650193342297746f985f8794e4b93ceeac52b.tar.xz serenity-b14650193342297746f985f8794e4b93ceeac52b.zip | |
Replace Vec parameters by IntoIterator (#176)
Diffstat (limited to 'src/builder/create_message.rs')
| -rw-r--r-- | src/builder/create_message.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/builder/create_message.rs b/src/builder/create_message.rs index 96bad82..821048b 100644 --- a/src/builder/create_message.rs +++ b/src/builder/create_message.rs @@ -74,7 +74,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 { + pub fn reactions<R: Into<ReactionType>, It: IntoIterator<Item=R>>(mut self, reactions: It) -> Self { self.1 = Some(reactions.into_iter().map(|r| r.into()).collect()); CreateMessage(self.0, self.1) |