aboutsummaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
authorFenhl <[email protected]>2017-11-12 09:23:26 +0000
committeralex <[email protected]>2017-11-12 10:23:26 +0100
commita359f77d1fd03def94fc08367132a616ec2ea599 (patch)
treec68c6750decb92a27ec7ad55457d481e4c17c857 /src/model
parentRe-order use statements alphabetically (diff)
downloadserenity-a359f77d1fd03def94fc08367132a616ec2ea599.tar.xz
serenity-a359f77d1fd03def94fc08367132a616ec2ea599.zip
Change PrivateChannel::say to use `Display` (#214)
Diffstat (limited to 'src/model')
-rw-r--r--src/model/channel/private_channel.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/model/channel/private_channel.rs b/src/model/channel/private_channel.rs
index 80a59bb..e97d948 100644
--- a/src/model/channel/private_channel.rs
+++ b/src/model/channel/private_channel.rs
@@ -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.
///