Skip to content

Commit 53c6b4e

Browse files
committed
Remove not used Error::TextNotFound
The only usage was removed in 792d23d in #445
1 parent 596edd6 commit 53c6b4e

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

Changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
- [#675]: Rework the `quick_xml::Error` type to provide more accurate information:
2121
- `Error::EndEventMismatch` replaced by `IllFormedError::MismatchedEnd` in some cases
2222
- `Error::EndEventMismatch` replaced by `IllFormedError::UnmatchedEnd` in some cases
23+
- `Error::TextNotFound` was removed because not used
2324
- `Error::UnexpectedBang` replaced by `SyntaxError`
2425
- `Error::UnexpectedEof` replaced by `SyntaxError` in some cases
2526
- `Error::UnexpectedEof` replaced by `IllFormedError` in some cases

src/errors.rs

-3
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,6 @@ pub enum Error {
140140
///
141141
/// [`encoding`]: index.html#encoding
142142
NonDecodable(Option<Utf8Error>),
143-
/// Text not found, expected `Event::Text`
144-
TextNotFound,
145143
/// `Event::BytesDecl` must start with *version* attribute. Contains the attribute
146144
/// that was found or `None` if an xml declaration doesn't contain attributes.
147145
XmlDeclWithoutVersion(Option<String>),
@@ -248,7 +246,6 @@ impl fmt::Display for Error {
248246
Error::IllFormed(e) => write!(f, "ill-formed document: {}", e),
249247
Error::NonDecodable(None) => write!(f, "Malformed input, decoding impossible"),
250248
Error::NonDecodable(Some(e)) => write!(f, "Malformed UTF-8 input: {}", e),
251-
Error::TextNotFound => write!(f, "Cannot read text, expecting Event::Text"),
252249
Error::XmlDeclWithoutVersion(e) => write!(
253250
f,
254251
"XmlDecl must start with 'version' attribute, found {:?}",

0 commit comments

Comments
 (0)