diff options
| author | Zeyla Hellyer <[email protected]> | 2017-09-18 17:48:52 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-09-18 17:48:52 -0700 |
| commit | dae2cb77b407044f44a7a2790d93efba3891854e (patch) | |
| tree | bef263c4490536cf8b56e988e71dd1aa43bc2696 /src/utils | |
| parent | Fix compiles of a variety of feature combinations (diff) | |
| download | serenity-dae2cb77b407044f44a7a2790d93efba3891854e.tar.xz serenity-dae2cb77b407044f44a7a2790d93efba3891854e.zip | |
Apply rustfmt
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/message_builder.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/utils/message_builder.rs b/src/utils/message_builder.rs index 8f13db2..2f714ec 100644 --- a/src/utils/message_builder.rs +++ b/src/utils/message_builder.rs @@ -852,8 +852,11 @@ 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 { |