Skip to content

Commit

Permalink
IndexMap: change ahash to foldhash
Browse files Browse the repository at this point in the history
  • Loading branch information
deedy5 committed Dec 18, 2024
1 parent f7bfd13 commit 7ee26f9
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 19 deletions.
21 changes: 7 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ rquest = { version = "0.31", features = [
"zstd",
] }
encoding_rs = { version = "0.8" }
ahash = "0.8"
foldhash = "0.1.3"
indexmap = { version = "2", features = ["serde"] }
tokio = { version = "1", features = ["full"] }
html2text = "0.13"
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ use std::str::FromStr;
use std::sync::{Arc, LazyLock, Mutex};
use std::time::Duration;

use ahash::RandomState;
use anyhow::{Error, Result};
use bytes::Bytes;
use foldhash::fast::RandomState;
use indexmap::IndexMap;
use pyo3::exceptions::PyValueError;
use pyo3::prelude::*;
Expand Down
2 changes: 1 addition & 1 deletion src/response.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::utils::{get_encoding_from_content, get_encoding_from_headers};
use ahash::RandomState;
use anyhow::{anyhow, Result};
use encoding_rs::Encoding;
use foldhash::fast::RandomState;
use html2text::{
from_read, from_read_with_decorator,
render::{RichDecorator, TrivialDecorator},
Expand Down
2 changes: 1 addition & 1 deletion src/traits.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use ahash::RandomState;
use foldhash::fast::RandomState;
use anyhow::{Error, Ok};
use indexmap::IndexMap;

Expand Down
2 changes: 1 addition & 1 deletion src/utils.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::cmp::min;
use std::sync::LazyLock;

use ahash::RandomState;
use foldhash::fast::RandomState;
use indexmap::IndexMap;
use rquest::boring::{
error::ErrorStack,
Expand Down

0 comments on commit 7ee26f9

Please sign in to comment.