From 59b832d0ae6c5cf3d725e33b6bdcb043a407747a Mon Sep 17 00:00:00 2001 From: Zak Nesler Date: Sun, 26 May 2024 23:33:49 -0400 Subject: [PATCH] tidy --- crates/blend-feed/src/lib.rs | 3 ++- crates/blend-feed/src/parse/entry.rs | 8 ++------ crates/blend-feed/src/parse/feed.rs | 2 +- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/crates/blend-feed/src/lib.rs b/crates/blend-feed/src/lib.rs index 321cfbdf..75db612a 100644 --- a/crates/blend-feed/src/lib.rs +++ b/crates/blend-feed/src/lib.rs @@ -3,7 +3,7 @@ extern crate lazy_static; mod error; mod extract; -pub mod model; +mod model; mod parse; mod readability; mod scrape; @@ -11,5 +11,6 @@ mod util; pub use error::FeedError as Error; pub use extract::*; +pub use model::*; pub use parse::*; pub use scrape::scrape_entry; diff --git a/crates/blend-feed/src/parse/entry.rs b/crates/blend-feed/src/parse/entry.rs index 65ba8cf8..536bd4a0 100644 --- a/crates/blend-feed/src/parse/entry.rs +++ b/crates/blend-feed/src/parse/entry.rs @@ -1,9 +1,5 @@ use super::{get_feed, parse_url}; -use crate::{ - error::FeedResult, - extract::*, - model::{self, ParsedEntry}, -}; +use crate::{error::FeedResult, extract::*, ParsedEntry}; /// Fetch feed and process each entry as needed pub async fn parse_entries(url: &str) -> FeedResult> { @@ -39,7 +35,7 @@ pub async fn parse_entries(url: &str) -> FeedResult> { updated_at: entry.updated, } }) - .collect::>(); + .collect::>(); Ok(entries) } diff --git a/crates/blend-feed/src/parse/feed.rs b/crates/blend-feed/src/parse/feed.rs index bcc09eda..027c8b6d 100644 --- a/crates/blend-feed/src/parse/feed.rs +++ b/crates/blend-feed/src/parse/feed.rs @@ -1,5 +1,5 @@ use super::{get_feed, parse_url}; -use crate::{error::FeedResult, extract::*, model::ParsedFeed}; +use crate::{error::FeedResult, extract::*, ParsedFeed}; // Fetch feed and process the basic feed data pub async fn parse_feed(url: &str) -> FeedResult {