diff options
| author | mat <github@matdoes.dev> | 2022-07-31 18:05:41 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-07-31 18:05:41 -0500 |
| commit | 69f97dbf02e5422ee796492a3633a4e8f3f09d2d (patch) | |
| tree | 0727d5dd604e49135e2265690856c36ce28792e4 /azalea-chat | |
| parent | 0cf8f82994db643e13ec90074bd1c2c92c6e67fb (diff) | |
| download | azalea-drasl-69f97dbf02e5422ee796492a3633a4e8f3f09d2d.tar.xz | |
clippo the sequel
Diffstat (limited to 'azalea-chat')
| -rwxr-xr-x | azalea-chat/src/style.rs | 2 | ||||
| -rwxr-xr-x | azalea-chat/src/text_component.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/azalea-chat/src/style.rs b/azalea-chat/src/style.rs index 4e3b24de..9fca6563 100755 --- a/azalea-chat/src/style.rs +++ b/azalea-chat/src/style.rs @@ -2,7 +2,7 @@ use std::{collections::HashMap, fmt}; use serde_json::Value; -#[derive(Clone, PartialEq, Debug)] +#[derive(Clone, PartialEq, Eq, Debug)] pub struct TextColor { pub value: u32, pub name: Option<String>, diff --git a/azalea-chat/src/text_component.rs b/azalea-chat/src/text_component.rs index 6c43f8b7..a704f455 100755 --- a/azalea-chat/src/text_component.rs +++ b/azalea-chat/src/text_component.rs @@ -54,7 +54,7 @@ pub fn legacy_color_code_to_text_component(legacy_color_code: &str) -> TextCompo final_component } -impl<'a> TextComponent { +impl TextComponent { pub fn new(text: String) -> Self { // if it contains a LEGACY_FORMATTING_CODE_SYMBOL, format it if text.contains(LEGACY_FORMATTING_CODE_SYMBOL) { |
