Skip to content
4 changes: 3 additions & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ pub enum Error {
UnsupportedTupleStruct,
#[error("Unsupported structure in sequence")]
UnsupportedStructureInSeq,
#[error(transparent)]
Io(#[from] std::io::Error),
}

impl ser::Error for Error {
Expand All @@ -43,4 +45,4 @@ impl Error {
{
Self::Message(e.to_string())
}
}
}
Loading