diff options
author | Sam Tay <sam.chong.tay@gmail.com> | 2020-06-08 23:16:05 -0700 |
---|---|---|
committer | Sam Tay <sam.chong.tay@gmail.com> | 2020-06-08 23:16:05 -0700 |
commit | 0056c5a93feabf96f432c5a50bd492742483acbd (patch) | |
tree | 2bf23190da8964c2a62f97ca05198c36cd491abc /src/error.rs | |
parent | 546fc51006e2bcb9acf301a8c06a49a1d982bce1 (diff) |
Clean up reading/writing to files
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/error.rs b/src/error.rs index d125fb2..86fb55f 100644 --- a/src/error.rs +++ b/src/error.rs @@ -10,6 +10,10 @@ pub enum Error { Crossterm(#[from] crossterm::ErrorKind), #[error("Reqwest error: {0}")] Reqwest(#[from] reqwest::Error), + #[error("SerdeJson error: {0}")] + SerdeJson(#[from] serde_json::Error), + #[error("SerdeYaml error: {0}")] + SerdeYaml(#[from] serde_yaml::Error), #[error("IO error: {0}")] IO(#[from] std::io::Error), #[error("File `{}` is malformed; try removing it", .0.display())] @@ -28,6 +32,6 @@ pub enum Error { #[derive(Debug)] pub enum PermissionType { - Create, + Read, Write, } |