diff options
-rw-r--r-- | src/search/entry.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/search/entry.rs b/src/search/entry.rs index 1ac20fc..776886b 100644 --- a/src/search/entry.rs +++ b/src/search/entry.rs @@ -1,10 +1,7 @@ use ignore::{DirEntry, Walk}; use tracing::error; -use crate::{ - project::{GitProject, PathProject, ProjectItem}, - Project, -}; +use crate::project::{GitProject, PathProject, ProjectItem}; pub use config::Config; @@ -24,10 +21,7 @@ impl std::fmt::Debug for Entry { } impl Entry { - pub fn parse_dir_entry( - &self, - dir_entry: DirEntry, - ) -> Option<Box<dyn Project<Error = crate::project::Error>>> { + pub fn parse_dir_entry(&self, dir_entry: DirEntry) -> Option<ProjectItem> { if self.config.git { if let Ok(git) = GitProject::try_from(dir_entry.to_owned()) { return Some(Box::new(git)); |