From efc8b853e67557de2d5ae23ea32df661405c07ad Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Sun, 27 Nov 2022 20:08:52 -0600 Subject: refactor: replace explicit types with type alias --- src/search/entry.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/search/entry.rs') 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>> { + pub fn parse_dir_entry(&self, dir_entry: DirEntry) -> Option { if self.config.git { if let Ok(git) = GitProject::try_from(dir_entry.to_owned()) { return Some(Box::new(git)); -- cgit v1.2.3-70-g09d2