aboutsummaryrefslogtreecommitdiff
path: root/src/structs/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/structs/error.rs')
-rw-r--r--src/structs/error.rs6
1 files changed, 3 insertions, 3 deletions
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<StructError> for ArchiveError<StructError> {
23impl Display for StructError { 23impl Display for StructError {
24 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 24 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
25 match self { 25 match self {
26 StructError::SerializationNotSupported { type_name } => { 26 Self::SerializationNotSupported { type_name } => {
27 writeln!(f, "Serialization for type '{type_name}' not supported") 27 writeln!(f, "Serialization for type '{type_name}' not supported")
28 } 28 }
29 StructError::DeserializationNotSupported { type_name } => { 29 Self::DeserializationNotSupported { type_name } => {
30 writeln!(f, "Deserialization for type '{type_name}' not supported") 30 writeln!(f, "Deserialization for type '{type_name}' not supported")
31 } 31 }
32 StructError::UnexpectedEOF => writeln!(f, "Unexpected EOF"), 32 Self::UnexpectedEOF => writeln!(f, "Unexpected EOF"),
33 } 33 }
34 } 34 }
35} 35}