@@ -183,7 +183,7 @@ impl<'a> BytesStart<'a> {
183183 /// ```
184184 ///
185185 /// [`to_end`]: Self::to_end
186- pub fn borrow ( & self ) -> BytesStart {
186+ pub fn borrow ( & self ) -> BytesStart < ' _ > {
187187 BytesStart {
188188 buf : Cow :: Borrowed ( & self . buf ) ,
189189 name_len : self . name_len ,
@@ -193,7 +193,7 @@ impl<'a> BytesStart<'a> {
193193
194194 /// Creates new paired close tag
195195 #[ inline]
196- pub fn to_end ( & self ) -> BytesEnd {
196+ pub fn to_end ( & self ) -> BytesEnd < ' _ > {
197197 BytesEnd :: from ( self . name ( ) )
198198 }
199199
@@ -213,7 +213,7 @@ impl<'a> BytesStart<'a> {
213213
214214 /// Gets the undecoded raw tag name, as present in the input stream.
215215 #[ inline]
216- pub fn name ( & self ) -> QName {
216+ pub fn name ( & self ) -> QName < ' _ > {
217217 QName ( & self . buf [ ..self . name_len ] )
218218 }
219219
@@ -222,7 +222,7 @@ impl<'a> BytesStart<'a> {
222222 ///
223223 /// All content up to and including the first `:` character is removed from the tag name.
224224 #[ inline]
225- pub fn local_name ( & self ) -> LocalName {
225+ pub fn local_name ( & self ) -> LocalName < ' _ > {
226226 self . name ( ) . into ( )
227227 }
228228
@@ -283,12 +283,12 @@ impl<'a> BytesStart<'a> {
283283 }
284284
285285 /// Returns an iterator over the attributes of this tag.
286- pub fn attributes ( & self ) -> Attributes {
286+ pub fn attributes ( & self ) -> Attributes < ' _ > {
287287 Attributes :: wrap ( & self . buf , self . name_len , false , self . decoder )
288288 }
289289
290290 /// Returns an iterator over the HTML-like attributes of this tag (no mandatory quotes or `=`).
291- pub fn html_attributes ( & self ) -> Attributes {
291+ pub fn html_attributes ( & self ) -> Attributes < ' _ > {
292292 Attributes :: wrap ( & self . buf , self . name_len , true , self . decoder )
293293 }
294294
@@ -432,15 +432,15 @@ impl<'a> BytesEnd<'a> {
432432
433433 /// Converts the event into a borrowed event.
434434 #[ inline]
435- pub fn borrow ( & self ) -> BytesEnd {
435+ pub fn borrow ( & self ) -> BytesEnd < ' _ > {
436436 BytesEnd {
437437 name : Cow :: Borrowed ( & self . name ) ,
438438 }
439439 }
440440
441441 /// Gets the undecoded raw tag name, as present in the input stream.
442442 #[ inline]
443- pub fn name ( & self ) -> QName {
443+ pub fn name ( & self ) -> QName < ' _ > {
444444 QName ( & self . name )
445445 }
446446
@@ -449,7 +449,7 @@ impl<'a> BytesEnd<'a> {
449449 ///
450450 /// All content up to and including the first `:` character is removed from the tag name.
451451 #[ inline]
452- pub fn local_name ( & self ) -> LocalName {
452+ pub fn local_name ( & self ) -> LocalName < ' _ > {
453453 self . name ( ) . into ( )
454454 }
455455}
@@ -571,7 +571,7 @@ impl<'a> BytesText<'a> {
571571
572572 /// Converts the event into a borrowed event.
573573 #[ inline]
574- pub fn borrow ( & self ) -> BytesText {
574+ pub fn borrow ( & self ) -> BytesText < ' _ > {
575575 BytesText {
576576 content : Cow :: Borrowed ( & self . content ) ,
577577 decoder : self . decoder ,
@@ -792,7 +792,7 @@ impl<'a> BytesCData<'a> {
792792
793793 /// Converts the event into a borrowed event.
794794 #[ inline]
795- pub fn borrow ( & self ) -> BytesCData {
795+ pub fn borrow ( & self ) -> BytesCData < ' _ > {
796796 BytesCData {
797797 content : Cow :: Borrowed ( & self . content ) ,
798798 decoder : self . decoder ,
@@ -1070,7 +1070,7 @@ impl<'a> BytesPI<'a> {
10701070
10711071 /// Converts the event into a borrowed event.
10721072 #[ inline]
1073- pub fn borrow ( & self ) -> BytesPI {
1073+ pub fn borrow ( & self ) -> BytesPI < ' _ > {
10741074 BytesPI {
10751075 content : self . content . borrow ( ) ,
10761076 }
@@ -1140,7 +1140,7 @@ impl<'a> BytesPI<'a> {
11401140 /// }
11411141 /// ```
11421142 #[ inline]
1143- pub fn attributes ( & self ) -> Attributes {
1143+ pub fn attributes ( & self ) -> Attributes < ' _ > {
11441144 self . content . attributes ( )
11451145 }
11461146}
@@ -1300,7 +1300,7 @@ impl<'a> BytesDecl<'a> {
13001300 /// ```
13011301 ///
13021302 /// [grammar]: https://www.w3.org/TR/xml11/#NT-XMLDecl
1303- pub fn version ( & self ) -> Result < Cow < [ u8 ] > , Error > {
1303+ pub fn version ( & self ) -> Result < Cow < ' _ , [ u8 ] > , Error > {
13041304 // The version *must* be the first thing in the declaration.
13051305 match self . content . attributes ( ) . with_checks ( false ) . next ( ) {
13061306 Some ( Ok ( a) ) if a. key . as_ref ( ) == b"version" => Ok ( a. value ) ,
@@ -1355,7 +1355,7 @@ impl<'a> BytesDecl<'a> {
13551355 /// ```
13561356 ///
13571357 /// [grammar]: https://www.w3.org/TR/xml11/#NT-XMLDecl
1358- pub fn encoding ( & self ) -> Option < Result < Cow < [ u8 ] > , AttrError > > {
1358+ pub fn encoding ( & self ) -> Option < Result < Cow < ' _ , [ u8 ] > , AttrError > > {
13591359 self . content
13601360 . try_get_attribute ( "encoding" )
13611361 . map ( |a| a. map ( |a| a. value ) )
@@ -1397,7 +1397,7 @@ impl<'a> BytesDecl<'a> {
13971397 /// ```
13981398 ///
13991399 /// [grammar]: https://www.w3.org/TR/xml11/#NT-XMLDecl
1400- pub fn standalone ( & self ) -> Option < Result < Cow < [ u8 ] > , AttrError > > {
1400+ pub fn standalone ( & self ) -> Option < Result < Cow < ' _ , [ u8 ] > , AttrError > > {
14011401 self . content
14021402 . try_get_attribute ( "standalone" )
14031403 . map ( |a| a. map ( |a| a. value ) )
@@ -1426,7 +1426,7 @@ impl<'a> BytesDecl<'a> {
14261426
14271427 /// Converts the event into a borrowed event.
14281428 #[ inline]
1429- pub fn borrow ( & self ) -> BytesDecl {
1429+ pub fn borrow ( & self ) -> BytesDecl < ' _ > {
14301430 BytesDecl {
14311431 content : self . content . borrow ( ) ,
14321432 }
@@ -1523,7 +1523,7 @@ impl<'a> BytesRef<'a> {
15231523
15241524 /// Converts the event into a borrowed event.
15251525 #[ inline]
1526- pub fn borrow ( & self ) -> BytesRef {
1526+ pub fn borrow ( & self ) -> BytesRef < ' _ > {
15271527 BytesRef {
15281528 content : Cow :: Borrowed ( & self . content ) ,
15291529 decoder : self . decoder ,
@@ -1703,7 +1703,7 @@ impl<'a> Event<'a> {
17031703
17041704 /// Converts the event into a borrowed event.
17051705 #[ inline]
1706- pub fn borrow ( & self ) -> Event {
1706+ pub fn borrow ( & self ) -> Event < ' _ > {
17071707 match self {
17081708 Event :: Start ( e) => Event :: Start ( e. borrow ( ) ) ,
17091709 Event :: End ( e) => Event :: End ( e. borrow ( ) ) ,
0 commit comments