@@ -130,15 +130,15 @@ fn parse_feed_element(
130130 element. attributes ( ) . flatten ( ) ,
131131 limits. max_attribute_length ,
132132 ) {
133- link. href = base_ctx. resolve_safe ( & link. href ) ;
133+ link. href = base_ctx. resolve_safe ( & link. href ) . into ( ) ;
134134
135135 if feed. feed . link . is_none ( ) && link. rel . as_deref ( ) == Some ( "alternate" )
136136 {
137- feed. feed . link = Some ( link. href . clone ( ) ) ;
137+ feed. feed . link = Some ( link. href . to_string ( ) ) ;
138138 }
139139 if feed. feed . license . is_none ( ) && link. rel . as_deref ( ) == Some ( "license" )
140140 {
141- feed. feed . license = Some ( link. href . clone ( ) ) ;
141+ feed. feed . license = Some ( link. href . to_string ( ) ) ;
142142 }
143143 feed. feed
144144 . links
@@ -304,13 +304,13 @@ fn parse_entry(
304304 element. attributes ( ) . flatten ( ) ,
305305 limits. max_attribute_length ,
306306 ) {
307- link. href = base_ctx. resolve_safe ( & link. href ) ;
307+ link. href = base_ctx. resolve_safe ( & link. href ) . into ( ) ;
308308
309309 if entry. link . is_none ( ) && link. rel . as_deref ( ) == Some ( "alternate" ) {
310- entry. link = Some ( link. href . clone ( ) ) ;
310+ entry. link = Some ( link. href . to_string ( ) ) ;
311311 }
312312 if entry. license . is_none ( ) && link. rel . as_deref ( ) == Some ( "license" ) {
313- entry. license = Some ( link. href . clone ( ) ) ;
313+ entry. license = Some ( link. href . to_string ( ) ) ;
314314 }
315315 entry
316316 . links
@@ -496,7 +496,7 @@ fn parse_person(
496496
497497 match e. local_name ( ) . as_ref ( ) {
498498 b"name" => name = Some ( read_text ( reader, buf, limits) ?) ,
499- b"email" => email = Some ( read_text ( reader, buf, limits) ?) ,
499+ b"email" => email = Some ( read_text ( reader, buf, limits) ?. into ( ) ) ,
500500 b"uri" => uri = Some ( read_text ( reader, buf, limits) ?) ,
501501 _ => skip_element ( reader, buf, limits, * depth) ?,
502502 }
@@ -560,7 +560,7 @@ fn parse_content(
560560 continue ;
561561 }
562562 if attr. key . as_ref ( ) == b"type" {
563- content_type = Some ( bytes_to_string ( & attr. value ) ) ;
563+ content_type = Some ( bytes_to_string ( & attr. value ) . into ( ) ) ;
564564 }
565565 }
566566
@@ -599,7 +599,7 @@ fn parse_atom_source(
599599 limits. max_attribute_length ,
600600 ) && link. is_none ( )
601601 {
602- link = Some ( l. href ) ;
602+ link = Some ( l. href . to_string ( ) ) ;
603603 }
604604 skip_to_end ( reader, buf, b"link" ) ?;
605605 }
0 commit comments