Skip to content

Commit

Permalink
Upgrade hashbrown
Browse files Browse the repository at this point in the history
  • Loading branch information
rushmorem committed Nov 13, 2024
1 parent 786c046 commit 5a25622
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 @@ -30,7 +30,7 @@ std = []
psl-types = "2.0.11"

# Optional dependencies
hashbrown = { version = "0.12.3", features = ["inline-more"], optional = true }
hashbrown = { version = "0.15.1", features = ["inline-more"], optional = true }
idna = { version = "1.0", optional = true }
unicase = { version = "2.6.0", default-features = false, optional = true }

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ impl List {
#[cfg(feature = "anycase")]
let key = UniCase::new(Cow::from(label.to_owned()));

current = current.children.entry(key).or_insert_with(Default::default);
current = current.children.entry(key).or_default();
}

current.leaf = Some(Leaf { is_exception, typ });
Expand Down

0 comments on commit 5a25622

Please sign in to comment.