diff options
Diffstat (limited to 'src/search/entry.rs')
-rw-r--r-- | src/search/entry.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/search/entry.rs b/src/search/entry.rs index 9e58962..eb845e1 100644 --- a/src/search/entry.rs +++ b/src/search/entry.rs @@ -2,18 +2,18 @@ use ignore::{Walk, WalkBuilder}; use tracing::error; use crate::{ - config::Entry, + config::SearchEntryConfig, project::{path::PathMatcher, ProjectParser, ProjectParserGroup}, search::ProjectItem, }; -pub struct EntryIter { +pub struct SearchEntry { parsers: ProjectParserGroup, iter: Walk, } -impl EntryIter { - fn new(config: &Entry) -> Self { +impl SearchEntry { + fn new(config: &SearchEntryConfig) -> Self { let iter = WalkBuilder::new(&config.path_buf) .standard_filters(true) .max_depth(config.max_depth) @@ -35,13 +35,13 @@ impl EntryIter { } } -impl From<Entry> for EntryIter { - fn from(config: Entry) -> Self { +impl From<SearchEntryConfig> for SearchEntry { + fn from(config: SearchEntryConfig) -> Self { Self::new(&config) } } -impl Iterator for EntryIter { +impl Iterator for SearchEntry { type Item = ProjectItem; fn next(&mut self) -> Option<Self::Item> { |