aboutsummaryrefslogtreecommitdiff
path: root/azalea-chat/src
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2024-08-15 23:33:23 +0000
committermat <git@matdoes.dev>2024-08-15 23:33:23 +0000
commite485cf550183445e5f063c6da078c97e9b66497f (patch)
tree17827909e5785733e82e7d0279515bd6aa9209e9 /azalea-chat/src
parent74831abbe4f9d2a2eabbfe0a3a44874d9f49135b (diff)
downloadazalea-drasl-e485cf550183445e5f063c6da078c97e9b66497f.tar.xz
fix incorrect comment in with_microsoft_access_token docs
Diffstat (limited to 'azalea-chat/src')
-rwxr-xr-xazalea-chat/src/translatable_component.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/azalea-chat/src/translatable_component.rs b/azalea-chat/src/translatable_component.rs
index 912271ae..82c84d85 100755
--- a/azalea-chat/src/translatable_component.rs
+++ b/azalea-chat/src/translatable_component.rs
@@ -51,6 +51,8 @@ fn serialize_args_as_nbt(args: &[StringOrComponent]) -> simdnbt::owned::NbtList
// if it's all components then make it a compound list
// if it's a mix then return an error
+ use tracing::debug;
+
let mut string_list = Vec::new();
let mut compound_list = Vec::new();
@@ -68,9 +70,7 @@ fn serialize_args_as_nbt(args: &[StringOrComponent]) -> simdnbt::owned::NbtList
if !string_list.is_empty() && !compound_list.is_empty() {
// i'm actually not sure what vanilla does here, so i just made it return the
// string list
- tracing::debug!(
- "Tried to serialize a TranslatableComponent with a mix of strings and components."
- );
+ debug!("Tried to serialize a TranslatableComponent with a mix of strings and components.");
return string_list.into();
}