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-nbt/src/error.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'azalea-nbt/src/error.rs') diff --git a/azalea-nbt/src/error.rs b/azalea-nbt/src/error.rs index 308c74c8..d3c5ff44 100755 --- a/azalea-nbt/src/error.rs +++ b/azalea-nbt/src/error.rs @@ -10,10 +10,10 @@ pub enum Error { impl std::fmt::Display for Error { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { match self { - Error::InvalidTagType(id) => write!(f, "Invalid tag type: {}", id), + Error::InvalidTagType(id) => write!(f, "Invalid tag type: {id}"), Error::InvalidTag => write!(f, "Invalid tag"), - Error::WriteError(e) => write!(f, "Write error: {}", e), - Error::Utf8Error(e) => write!(f, "Utf8 error: {}", e), + Error::WriteError(e) => write!(f, "Write error: {e}"), + Error::Utf8Error(e) => write!(f, "Utf8 error: {e}"), Error::UnexpectedEof => write!(f, "Unexpected EOF"), } } -- cgit v1.2.3