diff options
author | Akshay <[email protected]> | 2020-03-16 08:45:27 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2020-03-16 08:45:27 +0000 |
commit | 186611630fd258b6114cad41085be9a078fce4ba (patch) | |
tree | 56344bb45b0c224d4ab19e747f92e86bc34f1a8d /src | |
parent | 897705611c2004f4446119512a277cd9d520f4b1 (diff) |
follow naming convention, clear up imports
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -1,10 +1,8 @@ | |||
1 | use std::path::{Path, PathBuf}; | ||
2 | |||
3 | pub use serde::{de::DeserializeOwned, Serialize}; | ||
4 | pub use directories::ProjectDirs; | 1 | pub use directories::ProjectDirs; |
5 | pub use toml; | 2 | pub use serde::{de::DeserializeOwned, Serialize}; |
6 | pub use serde_json; | 3 | pub use serde_json; |
7 | pub use serde_yaml; | 4 | pub use serde_yaml; |
5 | pub use toml; | ||
8 | 6 | ||
9 | #[derive(Debug)] | 7 | #[derive(Debug)] |
10 | pub enum FondantError { | 8 | pub enum FondantError { |
@@ -17,7 +15,7 @@ pub enum FondantError { | |||
17 | FileOpenError, | 15 | FileOpenError, |
18 | } | 16 | } |
19 | 17 | ||
20 | pub trait Config: Serialize + DeserializeOwned + Default { | 18 | pub 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 | } |