From a4e92ed9bec1f5879eb1c20dfe281c4d25ed5f89 Mon Sep 17 00:00:00 2001 From: Igor Tolmachev Date: Sun, 23 Jun 2024 15:19:40 +0900 Subject: Improve ZipFile --- src/structs/error.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/structs/error.rs') diff --git a/src/structs/error.rs b/src/structs/error.rs index f08c9a3..3e74e45 100644 --- a/src/structs/error.rs +++ b/src/structs/error.rs @@ -23,13 +23,13 @@ impl From for ArchiveError { impl Display for StructError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { - StructError::SerializationNotSupported { type_name } => { + Self::SerializationNotSupported { type_name } => { writeln!(f, "Serialization for type '{type_name}' not supported") } - StructError::DeserializationNotSupported { type_name } => { + Self::DeserializationNotSupported { type_name } => { writeln!(f, "Deserialization for type '{type_name}' not supported") } - StructError::UnexpectedEOF => writeln!(f, "Unexpected EOF"), + Self::UnexpectedEOF => writeln!(f, "Unexpected EOF"), } } } -- cgit v1.2.3