File tree Expand file tree Collapse file tree 6 files changed +5
-14
lines changed Expand file tree Collapse file tree 6 files changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,6 @@ parking_lot = "=0.12.3"
9595paste = " =1.0.15"
9696postgres-native-tls = " =0.5.0"
9797prometheus = { version = " =0.13.4" , default-features = false }
98- quick-xml = " =0.37.0"
9998rand = " =0.8.5"
10099reqwest = { version = " =0.12.9" , features = [" gzip" , " json" ] }
101100rss = { version = " =2.0.10" , default-features = false , features = [" atom" ] }
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ snapshot_kind: text
2121 <item >
2222 <title >New crate created: baz</title >
2323 <link >https://crates.io/crates/baz</link >
24- <description ><![CDATA[does it handle XML? < item> ]]></description >
24+ <description ><![CDATA[does it handle XML? < item > ]]></description >
2525 <guid >https://crates.io/crates/baz</guid >
2626 <pubDate >Fri, 21 Jun 2024 17:01:33 +0000</pubDate >
2727 <crates:name>baz</crates:name>
Original file line number Diff line number Diff line change 11-- -
22source : src / tests / worker / rss / sync_updates_feed .rs
33expression : content
4+ snapshot_kind : text
45-- -
56< ? xml version = " 1.0" encoding = " utf-8" ? >
67<rss version = " 2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:crates="https://crates.io/">
@@ -29,7 +30,7 @@ expression: content
2930 <item >
3031 <title >New crate version published: bar v3.0.0-beta.1</title >
3132 <link >https://crates.io/crates/bar/3.0.0-beta.1</link >
32- <description ><![CDATA[let' s try & break this < item> ]]></description >
33+ <description ><![CDATA[let' s try & break this < item > ]]></description >
3334 <guid >https://crates.io/crates/bar/3.0.0-beta.1</guid >
3435 <pubDate >Fri, 21 Jun 2024 17:03:45 +0000</pubDate >
3536 <crates:name>bar</crates:name>
Original file line number Diff line number Diff line change @@ -125,10 +125,6 @@ impl NewCrate {
125125 permalink : true ,
126126 } ;
127127
128- let description = self
129- . description
130- . map ( |d| quick_xml:: escape:: escape ( & d) . to_string ( ) ) ;
131-
132128 let name_extension = rss:: extension:: Extension {
133129 name : "crates:name" . into ( ) ,
134130 value : Some ( self . name ) ,
@@ -144,7 +140,7 @@ impl NewCrate {
144140 guid : Some ( guid) ,
145141 title : Some ( title) ,
146142 link : Some ( link) ,
147- description,
143+ description : self . description ,
148144 pub_date : Some ( pub_date) ,
149145 extensions,
150146 ..Default :: default ( )
Original file line number Diff line number Diff line change @@ -132,10 +132,6 @@ impl VersionUpdate {
132132 permalink : true ,
133133 } ;
134134
135- let description = self
136- . description
137- . map ( |d| quick_xml:: escape:: escape ( & d) . to_string ( ) ) ;
138-
139135 let name_extension = rss:: extension:: Extension {
140136 name : "crates:name" . into ( ) ,
141137 value : Some ( self . name ) ,
@@ -160,7 +156,7 @@ impl VersionUpdate {
160156 guid : Some ( guid) ,
161157 title : Some ( title) ,
162158 link : Some ( link) ,
163- description,
159+ description : self . description ,
164160 pub_date : Some ( pub_date) ,
165161 extensions,
166162 ..Default :: default ( )
You can’t perform that action at this time.
0 commit comments