aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/c_update_advancements.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-12-11 23:21:42 -1030
committermat <git@matdoes.dev>2025-12-11 23:21:42 -1030
commitca70e5e321a3c174c53d0650feed84db471ac30d (patch)
tree43042fa40c2f3d7f30ea56e1ee84c59dcb13be66 /azalea-protocol/src/packets/game/c_update_advancements.rs
parent918214e8ba4eae65daf5d2da17aa0022f2ae5212 (diff)
downloadazalea-drasl-ca70e5e321a3c174c53d0650feed84db471ac30d.tar.xz
enable str_to_string clippy lint
Diffstat (limited to 'azalea-protocol/src/packets/game/c_update_advancements.rs')
-rw-r--r--azalea-protocol/src/packets/game/c_update_advancements.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/azalea-protocol/src/packets/game/c_update_advancements.rs b/azalea-protocol/src/packets/game/c_update_advancements.rs
index bba53998..6f3e960e 100644
--- a/azalea-protocol/src/packets/game/c_update_advancements.rs
+++ b/azalea-protocol/src/packets/game/c_update_advancements.rs
@@ -5,9 +5,9 @@ use std::{
use azalea_buf::AzBuf;
use azalea_chat::FormattedText;
-use azalea_registry::identifier::Identifier;
use azalea_inventory::ItemStack;
use azalea_protocol_macros::ClientboundGamePacket;
+use azalea_registry::identifier::Identifier;
use indexmap::IndexMap;
#[derive(Clone, Debug, AzBuf, PartialEq, ClientboundGamePacket)]
@@ -135,8 +135,8 @@ mod tests {
value: Advancement {
parent_id: None,
display: Some(DisplayInfo {
- title: FormattedText::from("title".to_string()),
- description: FormattedText::from("description".to_string()),
+ title: FormattedText::from("title".to_owned()),
+ description: FormattedText::from("description".to_owned()),
icon: ItemStack::Empty,
frame: FrameType::Task,
show_toast: true,
@@ -155,7 +155,7 @@ mod tests {
progress: [(
Identifier::new("minecraft:test3"),
[(
- "minecraft:test4".to_string(),
+ "minecraft:test4".to_owned(),
CriterionProgress {
date: Some(123456789),
},