summaryrefslogtreecommitdiffstats
path: root/src/search/entry/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/search/entry/config.rs')
-rw-r--r--src/search/entry/config.rs14
1 files changed, 0 insertions, 14 deletions
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<String>,
}
-impl From<Config> 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<PathBuf> for Config {
fn from(path_buf: PathBuf) -> Self {
Self {