From 4cac42d2299cecdc3d6a7f6d7661137da338278b Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Thu, 10 Nov 2022 17:37:24 -0600 Subject: feat: add paths module and tests --- src/directories/config.rs | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 src/directories/config.rs (limited to 'src/directories/config.rs') diff --git a/src/directories/config.rs b/src/directories/config.rs deleted file mode 100644 index ec66d0c..0000000 --- a/src/directories/config.rs +++ /dev/null @@ -1,26 +0,0 @@ -use figment::{providers::Serialized, value, Figment, Metadata, Profile, Provider}; -use serde::{Deserialize, Serialize}; -use std::path::PathBuf; - -#[derive(Debug, PartialEq, Eq, Clone, Default, Serialize, Deserialize)] -pub struct Config { - pub(crate) search: Vec, - pub(crate) add: Vec, - pub(crate) hidden: bool, -} - -impl Config { - pub fn from(provider: T) -> figment::error::Result { - Figment::from(provider).extract() - } -} - -impl Provider for Config { - fn metadata(&self) -> Metadata { - Metadata::named("Tmuxr directory config") - } - - fn data(&self) -> figment::error::Result> { - Serialized::defaults(Config::default()).data() - } -} -- cgit v1.2.3-70-g09d2