Skip to content

Commit

Permalink
Bump hashbrown from 0.14.5 to 0.15.1 (#227)
Browse files Browse the repository at this point in the history
* Bump hashbrown from 0.14.5 to 0.15.0

Bumps [hashbrown](https://github.com/rust-lang/hashbrown) from 0.14.5 to 0.15.0.
- [Changelog](https://github.com/rust-lang/hashbrown/blob/master/CHANGELOG.md)
- [Commits](rust-lang/hashbrown@v0.14.5...v0.15.0)

---
updated-dependencies:
- dependency-name: hashbrown
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump to hashbrown from 0.15.0 to 0.15.1

* Replace entry_ref() with entry()

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Hexin <[email protected]>
  • Loading branch information
dependabot[bot] and hexium310 authored Nov 23, 2024
1 parent 7d643f9 commit 935cfc0
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 9 deletions.
19 changes: 15 additions & 4 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 seitai/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ workspace = true
version = "0.3.31"

[dependencies.hashbrown]
version = "0.14.5"
version = "0.15.1"

[dependencies.http-body-util]
workspace = true
Expand Down
8 changes: 4 additions & 4 deletions seitai/src/commands/dictionary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,18 @@ where
for option in &interaction.data.options {
let mut subcommand_options = to_option_map(&option.value).unwrap_or_default();
subcommand_options
.entry_ref("surface")
.entry("surface")
.and_replace_entry_with(|_key, word| {
let text = normalize(context, &guild_id, &users, &word);
Some(regex::EMOJI.replace_all(&text, ":$1:").into_owned())
});

match option.name.as_str() {
"add" => {
subcommand_options.entry_ref("accent_type").or_insert("0".to_string());
subcommand_options.entry_ref("priority").or_insert("10".to_string());
subcommand_options.entry("accent_type").or_insert("0".to_string());
subcommand_options.entry("priority").or_insert("10".to_string());
subcommand_options
.entry_ref("pronunciation")
.entry("pronunciation")
.and_replace_entry_with(|_key, pronunciation| Some(to_katakana(&*pronunciation).into_owned()));

let word = subcommand_options
Expand Down

0 comments on commit 935cfc0

Please sign in to comment.