diff options
| author | mat <github@matdoes.dev> | 2022-10-27 21:22:47 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-10-27 21:22:47 -0500 |
| commit | 9de6c03dfbaa08890b1ec8322a97b7097d4a9d37 (patch) | |
| tree | f8a2e96893036b32ab2299df49fa5b88fb5187da /azalea-protocol/src | |
| parent | 7ae8bfab5095b8d6fe71f32a0b1cda8a47ccff94 (diff) | |
| download | azalea-drasl-9de6c03dfbaa08890b1ec8322a97b7097d4a9d37.tar.xz | |
use variables directly in format strings
thanks clippy we love you
Diffstat (limited to 'azalea-protocol/src')
| -rwxr-xr-x | azalea-protocol/src/write.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<P: ProtocolPacket + std::fmt::Debug>( return Err(PacketEncodeError::TooBig { actual: buf.len(), maximum: MAXIMUM_UNCOMPRESSED_LENGTH as usize, - packet_string: format!("{:?}", packet), + packet_string: format!("{packet:?}"), }); } Ok(buf) |
