summaryrefslogtreecommitdiffstats
path: root/src/search/entry
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2022-11-28 16:09:29 -0600
committerToby Vincent <tobyv13@gmail.com>2022-11-28 16:09:29 -0600
commitda884530e2b3e0b9a5bef9abcf683a970b93bd6b (patch)
tree84653f0fc4e643bb2d2c6d6a1eff79fdd94fbf07 /src/search/entry
parentf7eeef26d5a251c2a925d18d288fec2fa205f59d (diff)
feat: add git and preview (default) features
Diffstat (limited to 'src/search/entry')
-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 {