From da884530e2b3e0b9a5bef9abcf683a970b93bd6b Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Mon, 28 Nov 2022 16:09:29 -0600 Subject: feat: add git and preview (default) features --- src/search/entry/config.rs | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/search/entry') diff --git a/src/search/entry/config.rs b/src/search/entry/config.rs index d325b58..24c7971 100644 --- a/src/search/entry/config.rs +++ b/src/search/entry/config.rs @@ -1,9 +1,6 @@ -use ignore::WalkBuilder; use serde::{Deserialize, Deserializer, Serialize}; use std::{convert::Infallible, path::PathBuf, str::FromStr}; -use super::Entry; - #[derive(Debug, PartialEq, Eq, Clone, Default, Serialize)] #[serde(default)] pub struct Config { @@ -14,17 +11,6 @@ pub struct Config { pub pattern: Option, } -impl From for Entry { - fn from(config: Config) -> Self { - let iter = WalkBuilder::new(&config.path_buf) - .standard_filters(true) - .max_depth(config.max_depth) - .hidden(!config.hidden) - .build(); - Self { iter, config } - } -} - impl From for Config { fn from(path_buf: PathBuf) -> Self { Self { -- cgit v1.2.3-70-g09d2