Skip to content

Commit

Permalink
Merge pull request #22 from oiwn/dev
Browse files Browse the repository at this point in the history
update deps
  • Loading branch information
oiwn authored Jan 15, 2025
2 parents e3dc45f + ee9e54e commit 44a07f6
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
8 changes: 8 additions & 0 deletions .deny.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[licenses]
allow = [
"Apache-2.0",
"MIT",
"Unicode-3.0",
"MPL-2.0",
"ISC"
]
2 changes: 2 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[files]
extend-exclude = ["*.html"]
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dom-content-extraction"
version = "0.3.5"
version = "0.3.6"

description = "Rust implementation of Content extraction via text density paper"
license = "MPL-2.0"
Expand Down Expand Up @@ -30,8 +30,8 @@ strip = true
panic = "abort"

[dependencies]
ego-tree = "0.9"
scraper = "0.21"
ego-tree = "0.10"
scraper = "0.22"
thiserror = "2"

[dev-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions benches/simple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fn read_file_content_from_zip(zip_path: &str, file_name: &str) -> Option<String>
result
}

fn benchmark_test_1_html_dom_content_extaction(c: &mut Criterion) {
fn benchmark_test_1_html_dom_content_extraction(c: &mut Criterion) {
let content = read_file("html/test_1.html").unwrap();
c.bench_function("test_1_dom_content_extraction", |b| {
b.iter(|| {
Expand Down Expand Up @@ -122,7 +122,7 @@ fn benchmark_node_text_extraction(c: &mut Criterion) {

criterion_group!(
benches,
benchmark_test_1_html_dom_content_extaction,
benchmark_test_1_html_dom_content_extraction,
benchmark_real_file_dom_content_extraction,
benchmark_real_file_density_tree_calculation,
benchmark_real_file_density_tree_calculation_and_sort,
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ impl<'a> DensityTree {
}

impl std::fmt::Debug for DensityTree {
/// Format tree with identation
/// Format tree with indentation
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
fn pretty_print(
f: &mut std::fmt::Formatter<'_>,
Expand Down

0 comments on commit 44a07f6

Please sign in to comment.