From 186611630fd258b6114cad41085be9a078fce4ba Mon Sep 17 00:00:00 2001 From: Akshay Date: Mon, 16 Mar 2020 14:15:27 +0530 Subject: follow naming convention, clear up imports --- src/lib.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 78c3ffb..6c03510 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,10 +1,8 @@ -use std::path::{Path, PathBuf}; - -pub use serde::{de::DeserializeOwned, Serialize}; pub use directories::ProjectDirs; -pub use toml; +pub use serde::{de::DeserializeOwned, Serialize}; pub use serde_json; pub use serde_yaml; +pub use toml; #[derive(Debug)] pub enum FondantError { @@ -17,7 +15,7 @@ pub enum FondantError { FileOpenError, } -pub trait Config: Serialize + DeserializeOwned + Default { +pub trait Configure: Serialize + DeserializeOwned + Default { fn load() -> Result; fn store(&self) -> Result<(), FondantError>; } -- cgit v1.2.3