mirror of
https://gitlab.com/Anson-Projects/zine.git
synced 2025-07-25 07:41:29 +00:00
Let clippy fix
This commit is contained in:
@@ -116,7 +116,7 @@ pub fn read_feed(path: &str) -> Vec<Post> {
|
|||||||
.filter_map(|url| match web_fetchers::fetch_feed(url) {
|
.filter_map(|url| match web_fetchers::fetch_feed(url) {
|
||||||
Ok(entries) => Some(entries),
|
Ok(entries) => Some(entries),
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
println!("Failed to fetch or parse feed {}: {}", url, e);
|
println!("Failed to fetch or parse feed {url}: {e}");
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -131,7 +131,7 @@ pub fn read_feed(path: &str) -> Vec<Post> {
|
|||||||
.par_iter()
|
.par_iter()
|
||||||
.map(|entry| {
|
.map(|entry| {
|
||||||
Post::from_entry(entry).map_err(|e| {
|
Post::from_entry(entry).map_err(|e| {
|
||||||
log::warn!("Failed to process entry: {}", e);
|
log::warn!("Failed to process entry: {e}");
|
||||||
e
|
e
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
@@ -18,7 +18,7 @@ fn test_if_feeds_are_in_alphabetical_order() {
|
|||||||
urls.sort();
|
urls.sort();
|
||||||
|
|
||||||
for url in urls {
|
for url in urls {
|
||||||
println!("{}", url);
|
println!("{url}");
|
||||||
}
|
}
|
||||||
panic!("feeds.txt was not sorted!")
|
panic!("feeds.txt was not sorted!")
|
||||||
}
|
}
|
||||||
@@ -50,7 +50,7 @@ fn test_if_duplicates_in_feeds_list() {
|
|||||||
|
|
||||||
if !duplicates.is_empty() {
|
if !duplicates.is_empty() {
|
||||||
for dupe in duplicates {
|
for dupe in duplicates {
|
||||||
println!("{}", dupe)
|
println!("{dupe}")
|
||||||
}
|
}
|
||||||
panic!("Duplicate entries found!")
|
panic!("Duplicate entries found!")
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user