aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorMaiddog <[email protected]>2017-08-26 17:55:43 -0500
committeralex <[email protected]>2017-08-27 00:55:43 +0200
commit3e0b1032d80a1847558a752e8316d97f9ae58f04 (patch)
treeca65390091cb3c0ab98b6497a1447ba69df3d20d /src/utils
parentUse `$crate` for `Args` (diff)
downloadserenity-3e0b1032d80a1847558a752e8316d97f9ae58f04.tar.xz
serenity-3e0b1032d80a1847558a752e8316d97f9ae58f04.zip
Add ability to play DCA and Opus files. (#148)
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/message_builder.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/utils/message_builder.rs b/src/utils/message_builder.rs
index 2f714ec..8f13db2 100644
--- a/src/utils/message_builder.rs
+++ b/src/utils/message_builder.rs
@@ -852,11 +852,8 @@ impl Content {
pub fn to_string(&self) -> String {
let capacity =
self.inner.len() + if self.bold { 4 } else { 0 } + if self.italic { 2 } else { 0 } +
- if self.strikethrough { 4 } else { 0 } + if self.underline {
- 4
- } else {
- 0
- } + if self.code { 2 } else { 0 };
+ if self.strikethrough { 4 } else { 0 } +
+ if self.underline { 4 } else { 0 } + if self.code { 2 } else { 0 };
let mut new_str = String::with_capacity(capacity);
if self.bold {