chore: Another round of style lints fixes (#17519)

Closes #ISSUE

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2024-09-07 02:36:55 +02:00 committed by GitHub
parent cfd43572c1
commit 095a08d9c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
33 changed files with 67 additions and 82 deletions

View file

@ -448,7 +448,7 @@ fn history_file_exists(abs_path: &PathBuf) -> bool {
}
#[cfg(test)]
fn history_file_exists(abs_path: &PathBuf) -> bool {
fn history_file_exists(abs_path: &Path) -> bool {
!abs_path.ends_with("nonexistent.rs")
}

View file

@ -2012,7 +2012,7 @@ fn init_test(cx: &mut TestAppContext) -> Arc<AppState> {
}
fn test_path_position(test_str: &str) -> FileSearchQuery {
let path_position = PathWithPosition::parse_str(&test_str);
let path_position = PathWithPosition::parse_str(test_str);
FileSearchQuery {
raw_query: test_str.to_owned(),

View file

@ -181,7 +181,7 @@ impl PickerDelegate for OpenPathDelegate {
}
let matches = fuzzy::match_strings(
&match_candidates.as_slice(),
match_candidates.as_slice(),
&suffix,
false,
100,