From 38db231ea8fa0fb223e16637db0b6ec65b2b81ef Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 12 Oct 2023 20:14:29 -0500 Subject: brigadier usages --- azalea-chat/src/style.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'azalea-chat/src/style.rs') diff --git a/azalea-chat/src/style.rs b/azalea-chat/src/style.rs index 9c0d645e..ba4d6e72 100755 --- a/azalea-chat/src/style.rs +++ b/azalea-chat/src/style.rs @@ -6,7 +6,7 @@ use once_cell::sync::Lazy; use serde::{ser::SerializeStruct, Serialize, Serializer}; use serde_json::Value; -#[derive(Clone, PartialEq, Eq, Debug)] +#[derive(Clone, PartialEq, Eq, Debug, Hash)] pub struct TextColor { pub value: u32, pub name: Option, @@ -290,7 +290,7 @@ impl TryFrom for TextColor { } } -#[derive(Clone, Debug, Default, PartialEq)] +#[derive(Clone, Debug, Default, PartialEq, Eq, Hash)] pub struct Style { // These are options instead of just bools because None is different than false in this case pub color: Option, -- cgit v1.2.3