feedreader: format_entry does not need to return a Result
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user