@@ -2649,7 +2649,7 @@ where
26492649 /// |[`DeEvent::Start`]|`<any-tag>...</any-tag>` |Emits [`UnexpectedStart("any-tag")`](DeError::UnexpectedStart)
26502650 /// |[`DeEvent::End`] |`</tag>` |Returns an empty slice. The reader guarantee that tag will match the open one
26512651 /// |[`DeEvent::Text`] |`text content` or `<![CDATA[cdata content]]>` (probably mixed)|Returns event content unchanged, expects the `</tag>` after that
2652- /// |[`DeEvent::Eof`] | |Emits [`InvalidXml(IllFormed(MissedEnd ))`](DeError::InvalidXml)
2652+ /// |[`DeEvent::Eof`] | |Emits [`InvalidXml(IllFormed(MissingEndTag ))`](DeError::InvalidXml)
26532653 ///
26542654 /// [`Text`]: Event::Text
26552655 /// [`CData`]: Event::CData
@@ -3642,7 +3642,7 @@ mod tests {
36423642
36433643 match de. read_to_end ( QName ( b"tag" ) ) {
36443644 Err ( DeError :: InvalidXml ( Error :: IllFormed ( cause) ) ) => {
3645- assert_eq ! ( cause, IllFormedError :: MissedEnd ( "tag" . into( ) ) )
3645+ assert_eq ! ( cause, IllFormedError :: MissingEndTag ( "tag" . into( ) ) )
36463646 }
36473647 x => panic ! (
36483648 "Expected `Err(InvalidXml(IllFormed(_)))`, but got `{:?}`" ,
@@ -3661,7 +3661,7 @@ mod tests {
36613661
36623662 match de. read_to_end ( QName ( b"tag" ) ) {
36633663 Err ( DeError :: InvalidXml ( Error :: IllFormed ( cause) ) ) => {
3664- assert_eq ! ( cause, IllFormedError :: MissedEnd ( "tag" . into( ) ) )
3664+ assert_eq ! ( cause, IllFormedError :: MissingEndTag ( "tag" . into( ) ) )
36653665 }
36663666 x => panic ! (
36673667 "Expected `Err(InvalidXml(IllFormed(_)))`, but got `{:?}`" ,
@@ -3756,7 +3756,7 @@ mod tests {
37563756 fn read_string ( ) {
37573757 match from_str :: < String > ( r#"</root>"# ) {
37583758 Err ( DeError :: InvalidXml ( Error :: IllFormed ( cause) ) ) => {
3759- assert_eq ! ( cause, IllFormedError :: UnmatchedEnd ( "root" . into( ) ) ) ;
3759+ assert_eq ! ( cause, IllFormedError :: UnmatchedEndTag ( "root" . into( ) ) ) ;
37603760 }
37613761 x => panic ! (
37623762 "Expected `Err(InvalidXml(IllFormed(_)))`, but got `{:?}`" ,
@@ -3770,7 +3770,7 @@ mod tests {
37703770 match from_str :: < String > ( r#"<root></other>"# ) {
37713771 Err ( DeError :: InvalidXml ( Error :: IllFormed ( cause) ) ) => assert_eq ! (
37723772 cause,
3773- IllFormedError :: MismatchedEnd {
3773+ IllFormedError :: MismatchedEndTag {
37743774 expected: "root" . into( ) ,
37753775 found: "other" . into( ) ,
37763776 }
@@ -4098,7 +4098,7 @@ mod tests {
40984098 assert_eq ! ( de. next( ) . unwrap( ) , DeEvent :: End ( BytesEnd :: new( "tag" ) ) ) ;
40994099 match de. next ( ) {
41004100 Err ( DeError :: InvalidXml ( Error :: IllFormed ( cause) ) ) => {
4101- assert_eq ! ( cause, IllFormedError :: UnmatchedEnd ( "tag2" . into( ) ) ) ;
4101+ assert_eq ! ( cause, IllFormedError :: UnmatchedEndTag ( "tag2" . into( ) ) ) ;
41024102 }
41034103 x => panic ! (
41044104 "Expected `Err(InvalidXml(IllFormed(_)))`, but got `{:?}`" ,
@@ -4241,7 +4241,7 @@ mod tests {
42414241 let mut de = make_de ( "</tag>" ) ;
42424242 match de. next ( ) {
42434243 Err ( DeError :: InvalidXml ( Error :: IllFormed ( cause) ) ) => {
4244- assert_eq ! ( cause, IllFormedError :: UnmatchedEnd ( "tag" . into( ) ) ) ;
4244+ assert_eq ! ( cause, IllFormedError :: UnmatchedEndTag ( "tag" . into( ) ) ) ;
42454245 }
42464246 x => panic ! (
42474247 "Expected `Err(InvalidXml(IllFormed(_)))`, but got `{:?}`" ,
@@ -4320,7 +4320,7 @@ mod tests {
43204320 assert_eq ! ( de. next( ) . unwrap( ) , DeEvent :: Text ( "text" . into( ) ) ) ;
43214321 match de. next ( ) {
43224322 Err ( DeError :: InvalidXml ( Error :: IllFormed ( cause) ) ) => {
4323- assert_eq ! ( cause, IllFormedError :: UnmatchedEnd ( "tag" . into( ) ) ) ;
4323+ assert_eq ! ( cause, IllFormedError :: UnmatchedEndTag ( "tag" . into( ) ) ) ;
43244324 }
43254325 x => panic ! (
43264326 "Expected `Err(InvalidXml(IllFormed(_)))`, but got `{:?}`" ,
@@ -4352,7 +4352,7 @@ mod tests {
43524352 assert_eq ! ( de. next( ) . unwrap( ) , DeEvent :: Text ( "text cdata " . into( ) ) ) ;
43534353 match de. next ( ) {
43544354 Err ( DeError :: InvalidXml ( Error :: IllFormed ( cause) ) ) => {
4355- assert_eq ! ( cause, IllFormedError :: UnmatchedEnd ( "tag" . into( ) ) ) ;
4355+ assert_eq ! ( cause, IllFormedError :: UnmatchedEndTag ( "tag" . into( ) ) ) ;
43564356 }
43574357 x => panic ! (
43584358 "Expected `Err(InvalidXml(IllFormed(_)))`, but got `{:?}`" ,
@@ -4458,7 +4458,7 @@ mod tests {
44584458 assert_eq ! ( de. next( ) . unwrap( ) , DeEvent :: Text ( " cdata " . into( ) ) ) ;
44594459 match de. next ( ) {
44604460 Err ( DeError :: InvalidXml ( Error :: IllFormed ( cause) ) ) => {
4461- assert_eq ! ( cause, IllFormedError :: UnmatchedEnd ( "tag" . into( ) ) ) ;
4461+ assert_eq ! ( cause, IllFormedError :: UnmatchedEndTag ( "tag" . into( ) ) ) ;
44624462 }
44634463 x => panic ! (
44644464 "Expected `Err(InvalidXml(IllFormed(_)))`, but got `{:?}`" ,
@@ -4488,7 +4488,7 @@ mod tests {
44884488 assert_eq ! ( de. next( ) . unwrap( ) , DeEvent :: Text ( " cdata text" . into( ) ) ) ;
44894489 match de. next ( ) {
44904490 Err ( DeError :: InvalidXml ( Error :: IllFormed ( cause) ) ) => {
4491- assert_eq ! ( cause, IllFormedError :: UnmatchedEnd ( "tag" . into( ) ) ) ;
4491+ assert_eq ! ( cause, IllFormedError :: UnmatchedEndTag ( "tag" . into( ) ) ) ;
44924492 }
44934493 x => panic ! (
44944494 "Expected `Err(InvalidXml(IllFormed(_)))`, but got `{:?}`" ,
@@ -4538,7 +4538,7 @@ mod tests {
45384538 assert_eq ! ( de. next( ) . unwrap( ) , DeEvent :: Text ( " cdata cdata2 " . into( ) ) ) ;
45394539 match de. next ( ) {
45404540 Err ( DeError :: InvalidXml ( Error :: IllFormed ( cause) ) ) => {
4541- assert_eq ! ( cause, IllFormedError :: UnmatchedEnd ( "tag" . into( ) ) ) ;
4541+ assert_eq ! ( cause, IllFormedError :: UnmatchedEndTag ( "tag" . into( ) ) ) ;
45424542 }
45434543 x => panic ! (
45444544 "Expected `Err(InvalidXml(IllFormed(_)))`, but got `{:?}`" ,
0 commit comments