aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-03-16 08:45:27 +0000
committerAkshay <[email protected]>2020-03-16 08:45:27 +0000
commit186611630fd258b6114cad41085be9a078fce4ba (patch)
tree56344bb45b0c224d4ab19e747f92e86bc34f1a8d
parent897705611c2004f4446119512a277cd9d520f4b1 (diff)
follow naming convention, clear up imports
-rw-r--r--src/lib.rs8
1 files 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 @@
1use std::path::{Path, PathBuf};
2
3pub use serde::{de::DeserializeOwned, Serialize};
4pub use directories::ProjectDirs; 1pub use directories::ProjectDirs;
5pub use toml; 2pub use serde::{de::DeserializeOwned, Serialize};
6pub use serde_json; 3pub use serde_json;
7pub use serde_yaml; 4pub use serde_yaml;
5pub use toml;
8 6
9#[derive(Debug)] 7#[derive(Debug)]
10pub enum FondantError { 8pub enum FondantError {
@@ -17,7 +15,7 @@ pub enum FondantError {
17 FileOpenError, 15 FileOpenError,
18} 16}
19 17
20pub trait Config: Serialize + DeserializeOwned + Default { 18pub trait Configure: Serialize + DeserializeOwned + Default {
21 fn load() -> Result<Self, FondantError>; 19 fn load() -> Result<Self, FondantError>;
22 fn store(&self) -> Result<(), FondantError>; 20 fn store(&self) -> Result<(), FondantError>;
23} 21}