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-protocol/src/write.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'azalea-protocol/src') diff --git a/azalea-protocol/src/write.rs b/azalea-protocol/src/write.rs index 9df54f4d..8e56e5fc 100755 --- a/azalea-protocol/src/write.rs +++ b/azalea-protocol/src/write.rs @@ -35,7 +35,7 @@ fn packet_encoder( return Err(PacketEncodeError::TooBig { actual: buf.len(), maximum: MAXIMUM_UNCOMPRESSED_LENGTH as usize, - packet_string: format!("{:?}", packet), + packet_string: format!("{packet:?}"), }); } Ok(buf) -- cgit v1.2.3