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