We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7927663 commit b5008f8Copy full SHA for b5008f8
src/web/sitemap.rs
@@ -21,7 +21,7 @@ impl_webpage! {
21
}
22
23
pub fn sitemapindex_handler(req: &mut Request) -> IronResult<Response> {
24
- let sitemaps: Vec<char> = (b'a'..=b'z').map(char::from).collect();
+ let sitemaps: Vec<char> = ('a'..='z').collect();
25
26
SitemapIndexXml { sitemaps }.into_response(req)
27
@@ -218,7 +218,7 @@ mod tests {
218
assert!(!(content.contains(&"some_random_crate_that_failed")));
219
220
// and not in the others
221
- for letter in ('a'..='z').filter(|&&c| c != 's') {
+ for letter in ('a'..='z').filter(|&c| c != 's') {
222
let response = web
223
.get(&format!("/-/sitemap/{}/sitemap.xml", letter))
224
.send()?;
0 commit comments