diff options
| author | François Triquet <[email protected]> | 2017-10-04 08:41:54 +0200 |
|---|---|---|
| committer | alex <[email protected]> | 2017-10-04 08:41:54 +0200 |
| commit | 55167c300598536a852b3596fcf1c420aeb96c3a (patch) | |
| tree | c9ba3233515640f11113f91a51360781344c99d8 /src/model/channel/channel_id.rs | |
| parent | Force `I` to be not implemented outside serenity (diff) | |
| download | serenity-55167c300598536a852b3596fcf1c420aeb96c3a.tar.xz serenity-55167c300598536a852b3596fcf1c420aeb96c3a.zip | |
Replace Vec parameters by IntoIterator (#176)
Diffstat (limited to 'src/model/channel/channel_id.rs')
| -rw-r--r-- | src/model/channel/channel_id.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/model/channel/channel_id.rs b/src/model/channel/channel_id.rs index 4cc997d..93db984 100644 --- a/src/model/channel/channel_id.rs +++ b/src/model/channel/channel_id.rs @@ -439,7 +439,7 @@ impl ChannelId { /// [`GuildChannel`]: struct.GuildChannel.html /// [Attach Files]: permissions/constant.ATTACH_FILES.html /// [Send Messages]: permissions/constant.SEND_MESSAGES.html - pub fn send_files<'a, F, T>(&self, files: Vec<T>, f: F) -> Result<Message> + pub fn send_files<'a, F, T, It: IntoIterator<Item=T>>(&self, files: It, f: F) -> Result<Message> where F: FnOnce(CreateMessage) -> CreateMessage, T: Into<AttachmentType<'a>> { let mut map = f(CreateMessage::default()).0; |