storkit: merge 441_refactor_deduplicate_get_project_root_wrappers_in_io_modules
This commit is contained in:
@@ -11,15 +11,11 @@ pub struct SearchResult {
|
||||
pub matches: usize,
|
||||
}
|
||||
|
||||
fn get_project_root(state: &SessionState) -> Result<PathBuf, String> {
|
||||
state.get_project_root()
|
||||
}
|
||||
|
||||
pub async fn search_files(
|
||||
query: String,
|
||||
state: &SessionState,
|
||||
) -> Result<Vec<SearchResult>, String> {
|
||||
let root = get_project_root(state)?;
|
||||
let root = state.get_project_root()?;
|
||||
search_files_impl(query, root).await
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user