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
3
3
expression : content
4
4
-- -
5
5
< ? 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/" >
7
7
<channel>
8
8
<title>crates.io: recent updates</title>
9
9
<link>https://crates.io/</link>
Original file line number Diff line number Diff line change @@ -39,12 +39,16 @@ impl BackgroundJob for SyncUpdatesFeed {
39
39
. map ( |u| u. into_rss_item ( domain) )
40
40
. collect ( ) ;
41
41
42
+ let namespaces = vec ! [ ( "crates" . to_string( ) , "https://crates.io/" . to_string( ) ) ] ;
43
+ let namespaces = namespaces. into_iter ( ) . collect ( ) ;
44
+
42
45
let channel = rss:: Channel {
43
46
title : "crates.io: recent updates" . to_string ( ) ,
44
47
link : format ! ( "https://{domain}/" ) ,
45
48
description : "Recent version publishes on the crates.io package registry" . to_string ( ) ,
46
49
language : Some ( "en" . to_string ( ) ) ,
47
50
atom_ext : Some ( rss:: extension:: atom:: AtomExtension { links : vec ! [ link] } ) ,
51
+ namespaces,
48
52
items,
49
53
..Default :: default ( )
50
54
} ;
You can’t perform that action at this time.
0 commit comments