From 47fe04dfb634eba3c24403013cf92960237cf761 Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Wed, 30 Nov 2022 03:11:38 -0600 Subject: revert: remove figment from the lib (moved to bin) --- src/search/entry.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/search') 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 for EntryIter { - fn from(config: Entry) -> Self { +impl From 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 { -- cgit v1.2.3-70-g09d2