running so far
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@ use std::error::Error;
|
||||
|
||||
use rss::Channel;
|
||||
|
||||
pub async fn get_feed(feed: &String) -> Result<Channel, Box<dyn Error>> {
|
||||
pub async fn get_feed(feed: &str) -> Result<Channel, Box<dyn Error>> {
|
||||
let content = reqwest::get(feed).await?.bytes().await?;
|
||||
let channel = Channel::read_from(&content[..])?;
|
||||
Ok(channel)
|
||||
|
||||
Reference in New Issue
Block a user