diff options
| author | Fenhl <[email protected]> | 2017-11-12 09:23:26 +0000 |
|---|---|---|
| committer | alex <[email protected]> | 2017-11-12 10:23:26 +0100 |
| commit | a359f77d1fd03def94fc08367132a616ec2ea599 (patch) | |
| tree | c68c6750decb92a27ec7ad55457d481e4c17c857 /src | |
| parent | Re-order use statements alphabetically (diff) | |
| download | serenity-a359f77d1fd03def94fc08367132a616ec2ea599.tar.xz serenity-a359f77d1fd03def94fc08367132a616ec2ea599.zip | |
Change PrivateChannel::say to use `Display` (#214)
Diffstat (limited to 'src')
| -rw-r--r-- | src/model/channel/private_channel.rs | 2 |
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. /// |