Skip to content

Commit

Permalink
Update hashbrown dependency.
Browse files Browse the repository at this point in the history
Should resolve the problem with the transient ahash dependency (v0.7.7)
failing to build on latest nightly due to explicit check for strsimd
feature which no longer exists in nightly.

Remove unnecessary mut.
  • Loading branch information
tmpfs committed Feb 8, 2024
1 parent 8d215e4 commit b994887
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ exclude = [".github/**", ".gitignore", ".rustfmt.toml"]

[dependencies]
typed-generational-arena = "0.2"
hashbrown = "0.12.3"
hashbrown = "0.14"

[dev-dependencies]
lazy_static = "1.4.0"
Expand Down
2 changes: 1 addition & 1 deletion src/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ impl<T: Eq + Hash + Copy + Debug> Index<T> {
for i in 0..fields.len() {
let field_values = field_accessors[i](doc);
let fields_len = fields.len();
let mut field_details = fields.get_mut(i).unwrap();
let field_details = fields.get_mut(i).unwrap();
for field_value in field_values {
// tokenize text
let terms = tokenizer(field_value);
Expand Down

0 comments on commit b994887

Please sign in to comment.