diff options
| author | mat <github@matdoes.dev> | 2021-12-09 17:31:58 +0000 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2021-12-09 17:31:58 +0000 |
| commit | 1637e23c6c96feb30d09e472692387621ceb2cce (patch) | |
| tree | ba3370151c041dd5ead10507344c15dc97eb06ec /minecraft-chat/src | |
| parent | 577c2aa5444db727c23ceae565a8648d6f6a41f4 (diff) | |
| download | azalea-drasl-1637e23c6c96feb30d09e472692387621ceb2cce.tar.xz | |
fix formatters
Diffstat (limited to 'minecraft-chat/src')
| -rw-r--r-- | minecraft-chat/src/style.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/minecraft-chat/src/style.rs b/minecraft-chat/src/style.rs index e87bd999..dfbfe8ce 100644 --- a/minecraft-chat/src/style.rs +++ b/minecraft-chat/src/style.rs @@ -300,23 +300,23 @@ impl Style { }; // if bold used to be false/default and now it's true, set bold - if before.bold.unwrap_or(false) && !after.bold.unwrap_or(false) { + if !before.bold.unwrap_or(false) && after.bold.unwrap_or(false) { ansi_codes.push_str("\x1b[1m"); } // if italic used to be false/default and now it's true, set italic - if before.italic.unwrap_or(false) && !after.italic.unwrap_or(false) { + if !before.italic.unwrap_or(false) && after.italic.unwrap_or(false) { ansi_codes.push_str("\x1b[3m"); } // if underlined used to be false/default and now it's true, set underlined - if before.underlined.unwrap_or(false) && !after.underlined.unwrap_or(false) { + if !before.underlined.unwrap_or(false) && after.underlined.unwrap_or(false) { ansi_codes.push_str("\x1b[4m"); } // if strikethrough used to be false/default and now it's true, set strikethrough - if before.strikethrough.unwrap_or(false) && !after.strikethrough.unwrap_or(false) { + if !before.strikethrough.unwrap_or(false) && after.strikethrough.unwrap_or(false) { ansi_codes.push_str("\x1b[9m"); } // if obfuscated used to be false/default and now it's true, set obfuscated - if before.obfuscated.unwrap_or(false) && !after.obfuscated.unwrap_or(false) { + if !before.obfuscated.unwrap_or(false) && after.obfuscated.unwrap_or(false) { ansi_codes.push_str("\x1b[8m"); } |
