From 9de6c03dfbaa08890b1ec8322a97b7097d4a9d37 Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 27 Oct 2022 21:22:47 -0500 Subject: use variables directly in format strings thanks clippy we love you --- azalea-chat/src/component.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'azalea-chat/src/component.rs') diff --git a/azalea-chat/src/component.rs b/azalea-chat/src/component.rs index 12df03cd..6dd11084 100755 --- a/azalea-chat/src/component.rs +++ b/azalea-chat/src/component.rs @@ -186,7 +186,7 @@ impl<'de> Deserialize<'de> for Component { nbt } else { return Err(de::Error::custom( - format!("Don't know how to turn {} into a Component", json).as_str(), + format!("Don't know how to turn {json} into a Component").as_str(), )); }; let _separator = Component::parse_separator(&json).map_err(de::Error::custom)?; @@ -223,7 +223,7 @@ impl<'de> Deserialize<'de> for Component { // ok so it's not an object, if it's an array deserialize every item else if !json.is_array() { return Err(de::Error::custom( - format!("Don't know how to turn {} into a Component", json).as_str(), + format!("Don't know how to turn {json} into a Component").as_str(), )); } let json_array = json.as_array().unwrap(); -- cgit v1.2.3