Skip to content

Commit

Permalink
Remove unused DeError kinds and impls
Browse files Browse the repository at this point in the history
  • Loading branch information
RedPhoenixQ committed Sep 29, 2024
1 parent f0e17be commit 41c57d8
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,12 +345,6 @@ pub mod serialize {
/// [`Event::Start`]: crate::events::Event::Start
/// [`Event::End`]: crate::events::Event::End
UnexpectedEof,
/// An attempt to deserialize to a type, that is not supported by the XML
/// store at current position, for example, attempt to deserialize `struct`
/// from attribute or attempt to deserialize binary data.
///
/// [XML name]: https://www.w3.org/TR/xml11/#sec-common-syn
Unsupported(Cow<'static, str>),
/// Too many events were skipped while deserializing a sequence, event limit
/// exceeded. The limit was provided as an argument
#[cfg(feature = "overlapped-lists")]
Expand All @@ -372,7 +366,6 @@ pub mod serialize {
f.write_str(")`")
}
DeError::UnexpectedEof => write!(f, "Unexpected `Event::Eof`"),
DeError::Unsupported(s) => write!(f, "Unsupported operation: {}", s),
#[cfg(feature = "overlapped-lists")]
DeError::TooManyEvents(s) => write!(f, "Deserializer buffers {} events, limit exceeded", s),
}
Expand Down Expand Up @@ -445,13 +438,6 @@ pub mod serialize {
}
}

impl From<fmt::Error> for DeError {
#[inline]
fn from(e: fmt::Error) -> Self {
Self::Custom(e.to_string())
}
}

/// Serialization error
#[derive(Clone, Debug)]
pub enum SeError {
Expand Down

0 comments on commit 41c57d8

Please sign in to comment.