File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ source: src/tests/worker/rss/sync_updates_feed.rs
33expression : content
44-- -
55< ? xml version = " 1.0" encoding = " utf-8" ? >
6- <rss version = " 2.0" xmlns:atom="http://www.w3.org/2005/Atom">
6+ <rss version = " 2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:crates="https://crates.io/" >
77 <channel>
88 <title>crates.io: recent updates</title>
99 <link>https://crates.io/</link>
Original file line number Diff line number Diff line change @@ -39,12 +39,16 @@ impl BackgroundJob for SyncUpdatesFeed {
3939 . map ( |u| u. into_rss_item ( domain) )
4040 . collect ( ) ;
4141
42+ let namespaces = vec ! [ ( "crates" . to_string( ) , "https://crates.io/" . to_string( ) ) ] ;
43+ let namespaces = namespaces. into_iter ( ) . collect ( ) ;
44+
4245 let channel = rss:: Channel {
4346 title : "crates.io: recent updates" . to_string ( ) ,
4447 link : format ! ( "https://{domain}/" ) ,
4548 description : "Recent version publishes on the crates.io package registry" . to_string ( ) ,
4649 language : Some ( "en" . to_string ( ) ) ,
4750 atom_ext : Some ( rss:: extension:: atom:: AtomExtension { links : vec ! [ link] } ) ,
51+ namespaces,
4852 items,
4953 ..Default :: default ( )
5054 } ;
You can’t perform that action at this time.
0 commit comments