aboutsummaryrefslogtreecommitdiff
path: root/azalea-nbt/src/error.rs
diff options
context:
space:
mode:
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"),
}
}