diff options
| author | acdenisSK <[email protected]> | 2017-11-27 14:53:38 +0100 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-11-27 14:53:38 +0100 |
| commit | 3ca7e15e55de640200edb3898a33b838946a506c (patch) | |
| tree | ba165391712ea5047119df97a55443364e581d9c /src/utils | |
| parent | Do a temporary fix for options for commands created in the `command!` macro (diff) | |
| download | serenity-3ca7e15e55de640200edb3898a33b838946a506c.tar.xz serenity-3ca7e15e55de640200edb3898a33b838946a506c.zip | |
Use `ToString`'s blanket impl for `Display`s
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/message_builder.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/message_builder.rs b/src/utils/message_builder.rs index 5dcf018..79b6123 100644 --- a/src/utils/message_builder.rs +++ b/src/utils/message_builder.rs @@ -934,7 +934,7 @@ impl<T: fmt::Display> I for T { italic: false, bold: false, strikethrough: false, - inner: format!("{}", self), + inner: self.to_string(), code: false, underline: false, } |