@@ -54,7 +54,7 @@ use crate::name::{LocalName, QName};
5454#[ cfg( feature = "serialize" ) ]
5555use crate :: utils:: CowRef ;
5656use crate :: utils:: { name_len, trim_xml_end, trim_xml_start, write_cow_string} ;
57- use attributes:: { Attribute , Attributes } ;
57+ use attributes:: { AttrError , Attribute , Attributes } ;
5858
5959/// Opening tag data (`Event::Start`), with optional attributes: `<name attr="value">`.
6060///
@@ -297,7 +297,7 @@ impl<'a> BytesStart<'a> {
297297 pub fn try_get_attribute < N : AsRef < [ u8 ] > + Sized > (
298298 & ' a self ,
299299 attr_name : N ,
300- ) -> Result < Option < Attribute < ' a > > , Error > {
300+ ) -> Result < Option < Attribute < ' a > > , AttrError > {
301301 for a in self . attributes ( ) . with_checks ( false ) {
302302 let a = a?;
303303 if a. key . as_ref ( ) == attr_name. as_ref ( ) {
@@ -1189,7 +1189,7 @@ impl<'a> BytesDecl<'a> {
11891189 /// ```
11901190 ///
11911191 /// [grammar]: https://www.w3.org/TR/xml11/#NT-XMLDecl
1192- pub fn encoding ( & self ) -> Option < Result < Cow < [ u8 ] > , Error > > {
1192+ pub fn encoding ( & self ) -> Option < Result < Cow < [ u8 ] > , AttrError > > {
11931193 self . content
11941194 . try_get_attribute ( "encoding" )
11951195 . map ( |a| a. map ( |a| a. value ) )
@@ -1231,7 +1231,7 @@ impl<'a> BytesDecl<'a> {
12311231 /// ```
12321232 ///
12331233 /// [grammar]: https://www.w3.org/TR/xml11/#NT-XMLDecl
1234- pub fn standalone ( & self ) -> Option < Result < Cow < [ u8 ] > , Error > > {
1234+ pub fn standalone ( & self ) -> Option < Result < Cow < [ u8 ] > , AttrError > > {
12351235 self . content
12361236 . try_get_attribute ( "standalone" )
12371237 . map ( |a| a. map ( |a| a. value ) )
0 commit comments