feedreader: format_entry does not need to return a Result

This commit is contained in:
2025-05-03 15:28:18 +00:00
parent c8c9021b78
commit 40455f0365
2 changed files with 3 additions and 3 deletions

View File

@ -73,7 +73,7 @@ pub async fn fetch_and_parse_feed(uri: &str) -> Result<Feed, Box<dyn Error>> {
})
}
pub fn format_entry(feed: Feed, entry: model::Entry) -> Result<Entry, Box<dyn Error>> {
pub fn format_entry(feed: Feed, entry: model::Entry) -> Entry {
debug!("Formatting entry {}", entry.id);
let mut e = Entry {
@ -112,5 +112,5 @@ pub fn format_entry(feed: Feed, entry: model::Entry) -> Result<Entry, Box<dyn Er
content=e.content
));
Ok(e)
e
}