Skip to content

Commit 21d2c00

Browse files
committed
chore: Bump frizbee to 0.11
1 parent 7221081 commit 21d2c00

5 files changed

Lines changed: 8 additions & 40 deletions

File tree

Cargo.lock

Lines changed: 2 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ signal-hook-registry = "1.4"
3636
zlob = { version = "=1.6.0-dev.7" }
3737

3838
mlua = { version = "0.11.1", features = ["module", "luajit"] }
39-
neo_frizbee = { version = "0.10.4", features = ["match_end_col"] }
39+
neo_frizbee = { version = "0.11.0", features = ["match_end_col"] }
4040
notify = { version = "9.0.0-rc.3" }
4141
notify-debouncer-full = { package = "fff-notify-debouncer-full", version = "0.9.4" }
4242
once_cell = "1.20.2"

crates/fff-core/src/grep.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1633,6 +1633,7 @@ fn fuzzy_grep_search<'a>(
16331633
max_typos: Some(max_typos as u16),
16341634
sort: false,
16351635
scoring,
1636+
..Default::default()
16361637
},
16371638
);
16381639

@@ -2363,6 +2364,7 @@ mod tests {
23632364
exact_match_bonus: 100,
23642365
..neo_frizbee::Scoring::default()
23652366
},
2367+
..Default::default()
23662368
};
23672369
let min_matched = needle.len().saturating_sub(1).max(1); // 5
23682370
let max_match_span = needle.len() + 4; // 10

crates/fff-core/src/score.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ pub(crate) fn fuzzy_match_and_score_dirs<'a>(
313313
matching_case_bonus: if has_uppercase { 4 } else { 0 },
314314
..Default::default()
315315
},
316+
..Default::default()
316317
};
317318

318319
let path_matches = match_fuzzy_parts_dirs(
@@ -509,6 +510,7 @@ fn match_and_score_in_arena<'a>(
509510
matching_case_bonus: if has_uppercase { 4 } else { 0 },
510511
..Default::default()
511512
},
513+
..Default::default()
512514
};
513515

514516
let path_matches = match_fuzzy_parts(

crates/fff-nvim/benches/fuzzy_search_bench.rs

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ use fff::{
88
use std::path::PathBuf;
99
use std::time::Duration;
1010

11-
/// Initialize tracing to output to console
1211
fn init_tracing() {
1312
// use tracing_subscriber::EnvFilter;
1413
// use tracing_subscriber::fmt;
@@ -22,7 +21,6 @@ fn init_tracing() {
2221
// .try_init();
2322
}
2423

25-
/// Initialize FilePicker using shared state
2624
fn init_file_picker_internal(
2725
path: &str,
2826
shared_picker: &SharedFilePicker,
@@ -41,7 +39,6 @@ fn init_file_picker_internal(
4139
.map_err(|e| format!("Failed to create FilePicker: {:?}", e))
4240
}
4341

44-
/// Helper function to wait for scanning to complete and get file count
4542
fn wait_for_scan_completion(
4643
shared_picker: &SharedFilePicker,
4744
timeout_secs: u64,
@@ -100,20 +97,10 @@ fn wait_for_scan_completion(
10097
));
10198
}
10299

103-
std::thread::sleep(Duration::from_millis(100));
100+
std::thread::sleep(Duration::from_millis(50));
104101
}
105102
}
106103

107-
/// Clean up shared state
108-
fn cleanup_shared_state(shared_picker: &SharedFilePicker) {
109-
if let Ok(mut picker_guard) = shared_picker.write() {
110-
if let Some(mut picker) = picker_guard.take() {
111-
picker.stop_background_monitor();
112-
}
113-
}
114-
}
115-
116-
/// Initialize FilePicker once and return shared state
117104
fn setup_once() -> Result<(SharedFilePicker, SharedFrecency), String> {
118105
init_tracing();
119106

@@ -145,7 +132,6 @@ fn setup_once() -> Result<(SharedFilePicker, SharedFrecency), String> {
145132
Ok((shared_picker, shared_frecency))
146133
}
147134

148-
/// Benchmark for searching with various query patterns
149135
fn bench_search_queries(c: &mut Criterion) {
150136
let (sp, _sf) = match setup_once() {
151137
Ok(result) => result,

0 commit comments

Comments
 (0)