mirror of
https://gitlab.com/news-flash/article_scraper.git
synced 2025-07-08 08:30:00 +02:00
fmt & clippy
This commit is contained in:
parent
280c516cbe
commit
f7fa696921
2 changed files with 4 additions and 8 deletions
|
@ -855,9 +855,7 @@ impl FullTextParser {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
pub(crate) fn post_process_document(
|
||||
document: &Document
|
||||
) -> Result<(), FullTextParserError> {
|
||||
pub(crate) fn post_process_document(document: &Document) -> Result<(), FullTextParserError> {
|
||||
if let Some(mut root) = document.get_root_element() {
|
||||
Self::simplify_nested_elements(&mut root)?;
|
||||
|
||||
|
@ -869,9 +867,7 @@ impl FullTextParser {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
pub(crate) fn post_process_page(
|
||||
node: &mut Node,
|
||||
) -> Result<(), FullTextParserError> {
|
||||
pub(crate) fn post_process_page(node: &mut Node) -> Result<(), FullTextParserError> {
|
||||
Util::clean_conditionally(node, "fieldset");
|
||||
Util::clean_conditionally(node, "table");
|
||||
Util::clean_conditionally(node, "ul");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue