chore(deps): bump the cargo-prod group with 3 updates (#1109)

* chore(deps): bump the cargo-prod group with 3 updates

Bumps the cargo-prod group with 3 updates: [frizbee](https://github.com/saghen/frizbee), [gungraun](https://github.com/gungraun/gungraun) and [thread_local](https://github.com/Amanieu/thread_local-rs).


Updates `frizbee` from 0.10.0 to 0.11.0
- [Commits](https://github.com/saghen/frizbee/compare/v0.10.0...v0.11.0)

Updates `gungraun` from 0.19.3 to 0.19.4
- [Release notes](https://github.com/gungraun/gungraun/releases)
- [Changelog](https://github.com/gungraun/gungraun/blob/main/CHANGELOG.md)
- [Commits](https://github.com/gungraun/gungraun/compare/v0.19.3...v0.19.4)

Updates `thread_local` from 1.1.9 to 1.1.10
- [Release notes](https://github.com/Amanieu/thread_local-rs/releases)
- [Changelog](https://github.com/Amanieu/thread_local-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Amanieu/thread_local-rs/compare/v1.1.9...v1.1.10)

---
updated-dependencies:
- dependency-name: frizbee
  dependency-version: 0.11.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: cargo-prod
- dependency-name: gungraun
  dependency-version: 0.19.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-prod
- dependency-name: thread_local
  dependency-version: 1.1.10
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-prod
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: frizbee

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Loric ANDRE <loric.andre@pm.me>
This commit is contained in:
dependabot[bot] 2026-07-16 10:01:35 +02:00 committed by GitHub
parent c4bc5e1be4
commit 815a9b4f94
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 20 additions and 15 deletions

5
.codegraph/.gitignore vendored Normal file
View file

@ -0,0 +1,5 @@
# CodeGraph data files — local to each machine, not for committing.
# Ignore everything in .codegraph/ except this file itself, so transient
# files (the database, daemon.pid, sockets, logs) never show up in git.
*
!.gitignore

16
Cargo.lock generated
View file

@ -1196,9 +1196,9 @@ checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb"
[[package]]
name = "frizbee"
version = "0.10.0"
version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cf1203300031cb4fbd90e77833d9b2455f609ba9ab7c1703990d09ebbcd8b5ef"
checksum = "a151c9ed9ab8cefc76a76b7a15292fc83575f70cf2076d238e0a3251f69738ba"
[[package]]
name = "funty"
@ -1367,9 +1367,9 @@ dependencies = [
[[package]]
name = "gungraun"
version = "0.19.3"
version = "0.19.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "42dad80904253d053d82f31c739a304715174f3483a8ce7f4db187c47c1588ee"
checksum = "9300d38d30facf6870c15bc9e243edcc47e5ddc270c9d2c1ae824a00b1faea79"
dependencies = [
"bincode-next",
"derive_more",
@ -1395,9 +1395,9 @@ dependencies = [
[[package]]
name = "gungraun-runner"
version = "0.19.3"
version = "0.19.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9ae33525418129fba64b34a1bfa91f157282559d805ac2bf444736de969dd61a"
checksum = "47c68c92812da579a2510a2cc702d5aa3251992b9662d4a98502ca46e0cbe16e"
dependencies = [
"either-or-both",
"serde",
@ -3447,9 +3447,9 @@ dependencies = [
[[package]]
name = "thread_local"
version = "1.1.9"
version = "1.1.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f60246a4944f24f6e018aa17cdeffb7818b76356965d03b07d6a9886e8962185"
checksum = "1ad99c4c6d32803332c548b1af0540b357b3f5fc0be8f6c6bfe8b2e6ae784070"
dependencies = [
"cfg-if",
]

View file

@ -73,7 +73,7 @@ crossterm = { version = ">=0.0.0", features = ["event-stream", "use-dev-tty", "l
derive_builder = "0.20.2"
derive_more = { version = "2.1.1", features = ["debug", "eq"] }
env_logger = { version = "0.11.10", optional = true, features = ["humantime"] }
frizbee = { version = "=0.10.0", optional = true }
frizbee = { version = "=0.11.0", optional = true }
futures = "0.3.32"
gungraun = { version = "0.19.1", optional = true }
image = { version = "0.25.10", optional = true }

View file

@ -49,12 +49,9 @@ impl FrizbeeMatcher {
LOCAL_MATCHER.with(|cell| {
let mut slot = cell.borrow_mut();
if slot.as_ref().is_none() {
*slot = Some(Matcher::new("", &self.config));
}
let matcher = slot.as_mut().unwrap();
let matcher = slot.get_or_insert_with(|| Matcher::new("", &self.config));
matcher.set_config(self.config.clone());
matcher.set_needle(pattern);
matcher.set_pattern(pattern);
f(matcher)
})
}
@ -65,7 +62,10 @@ impl FuzzyMatcher for FrizbeeMatcher {
self.with_matcher(pattern, |m| {
m.match_one_indices(choice, 0).map(|mut hit| {
hit.indices.reverse();
(hit.score.into(), hit.indices)
(
hit.score.into(),
hit.indices.into_iter().map(|index| index as usize).collect(),
)
})
})
}