diff options
| author | acdenisSK <[email protected]> | 2017-07-27 08:10:41 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-07-27 08:10:41 +0200 |
| commit | 70b5097aaac85f970c32ceb988dbb5f5d575ee0f (patch) | |
| tree | d2f391d3b552cfae58b74748a2a2aa5ae80c7986 /src/model/channel/message.rs | |
| parent | rustfmt (diff) | |
| download | serenity-70b5097aaac85f970c32ceb988dbb5f5d575ee0f.tar.xz serenity-70b5097aaac85f970c32ceb988dbb5f5d575ee0f.zip | |
Change the config a bit, and a few nitpicks
Diffstat (limited to 'src/model/channel/message.rs')
| -rw-r--r-- | src/model/channel/message.rs | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/model/channel/message.rs b/src/model/channel/message.rs index 8b479bc..6fdab2a 100644 --- a/src/model/channel/message.rs +++ b/src/model/channel/message.rs @@ -206,8 +206,7 @@ impl Message { /// [`CreateMessage`]: ../builder/struct.CreateMessage.html /// [`the limit`]: ../builder/struct.CreateMessage.html#method.content pub fn edit<F>(&mut self, f: F) -> Result<()> - where - F: FnOnce(CreateMessage) -> CreateMessage, { + where F: FnOnce(CreateMessage) -> CreateMessage { #[cfg(feature = "cache")] { if self.author.id != CACHE.read().unwrap().user.id { @@ -244,8 +243,10 @@ impl Message { pub(crate) fn transform_content(&mut self) { match self.kind { MessageType::PinsAdd => { - self.content = format!("{} pinned a message to this channel. See all the pins.", - self.author); + self.content = format!( + "{} pinned a message to this channel. See all the pins.", + self.author + ); }, MessageType::MemberJoin => { let sec = self.timestamp.timestamp() as usize; @@ -316,9 +317,7 @@ impl Message { limit: Option<u8>, after: Option<U>) -> Result<Vec<User>> - where - R: Into<ReactionType>, - U: Into<UserId>, { + where R: Into<ReactionType>, U: Into<UserId> { self.channel_id .reaction_users(self.id, reaction_type, limit, after) } |