Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
zaknesler committed May 27, 2024
1 parent 5ea7084 commit 59b832d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
3 changes: 2 additions & 1 deletion crates/blend-feed/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ extern crate lazy_static;

mod error;
mod extract;
pub mod model;
mod model;
mod parse;
mod readability;
mod scrape;
mod util;

pub use error::FeedError as Error;
pub use extract::*;
pub use model::*;
pub use parse::*;
pub use scrape::scrape_entry;
8 changes: 2 additions & 6 deletions crates/blend-feed/src/parse/entry.rs
Original file line number Diff line number Diff line change
@@ -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<Vec<ParsedEntry>> {
Expand Down Expand Up @@ -39,7 +35,7 @@ pub async fn parse_entries(url: &str) -> FeedResult<Vec<ParsedEntry>> {
updated_at: entry.updated,
}
})
.collect::<Vec<model::ParsedEntry>>();
.collect::<Vec<ParsedEntry>>();

Ok(entries)
}
2 changes: 1 addition & 1 deletion crates/blend-feed/src/parse/feed.rs
Original file line number Diff line number Diff line change
@@ -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<ParsedFeed> {
Expand Down

0 comments on commit 59b832d

Please sign in to comment.