aboutsummaryrefslogtreecommitdiff
path: root/azalea-nbt/src/error.rs
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-10-27 21:22:47 -0500
committermat <github@matdoes.dev>2022-10-27 21:22:47 -0500
commit9de6c03dfbaa08890b1ec8322a97b7097d4a9d37 (patch)
treef8a2e96893036b32ab2299df49fa5b88fb5187da /azalea-nbt/src/error.rs
parent7ae8bfab5095b8d6fe71f32a0b1cda8a47ccff94 (diff)
downloadazalea-drasl-9de6c03dfbaa08890b1ec8322a97b7097d4a9d37.tar.xz
use variables directly in format strings
thanks clippy we love you
Diffstat (limited to 'azalea-nbt/src/error.rs')
-rwxr-xr-xazalea-nbt/src/error.rs6
1 files changed, 3 insertions, 3 deletions
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"),
}
}