From 69f97dbf02e5422ee796492a3633a4e8f3f09d2d Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 31 Jul 2022 18:05:41 -0500 Subject: clippo the sequel --- azalea-chat/src/style.rs | 2 +- azalea-chat/src/text_component.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'azalea-chat/src') 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, 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) { -- cgit v1.2.3