From f1571968af738ff401a3a4c6b7ee3ef2cb187a3a Mon Sep 17 00:00:00 2001 From: schuwi Date: Wed, 17 Jun 2020 17:14:39 +0200 Subject: [PATCH] Made error message code in serialize_tuple_struct more readable --- src/ser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ser.rs b/src/ser.rs index afae668..9a4d514 100644 --- a/src/ser.rs +++ b/src/ser.rs @@ -602,7 +602,7 @@ where "__hematite_nbt_i8_array__" => self.write_header(0x07)?, "__hematite_nbt_i32_array__" => self.write_header(0x0b)?, "__hematite_nbt_i64_array__" => self.write_header(0x0c)?, - _ => return Err(Error::UnrepresentableType(stringify!(tuple_struct))), + _ => return Err(Error::UnrepresentableType("tuple struct")), } Ok(NoOp)