From a359f77d1fd03def94fc08367132a616ec2ea599 Mon Sep 17 00:00:00 2001 From: Fenhl Date: Sun, 12 Nov 2017 09:23:26 +0000 Subject: Change PrivateChannel::say to use `Display` (#214) --- src/model/channel/private_channel.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 { self.id.say(content) } + pub fn say(&self, content: D) -> Result { self.id.say(content) } /// Sends (a) file(s) along with optional message contents. /// -- cgit v1.2.3