Skip to content

Commit

Permalink
Change PrivateChannel::say to use Display (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
fenhl authored and arqunis committed Nov 12, 2017
1 parent 348d52b commit a359f77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model/channel/private_channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ impl PrivateChannel {
/// [`ChannelId`]: ../model/struct.ChannelId.html
/// [`ModelError::MessageTooLong`]: enum.ModelError.html#variant.MessageTooLong
#[inline]
pub fn say(&self, content: &str) -> Result<Message> { self.id.say(content) }
pub fn say<D: ::std::fmt::Display>(&self, content: D) -> Result<Message> { self.id.say(content) }

/// Sends (a) file(s) along with optional message contents.
///
Expand Down

0 comments on commit a359f77

Please sign in to comment.