diff options
Diffstat (limited to 'mumlib')
| -rw-r--r-- | mumlib/Cargo.toml | 4 | ||||
| -rw-r--r-- | mumlib/src/error.rs | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/mumlib/Cargo.toml b/mumlib/Cargo.toml index 43bd8c5..183ebac 100644 --- a/mumlib/Cargo.toml +++ b/mumlib/Cargo.toml @@ -11,9 +11,9 @@ repository = "https://github.com/sornas/mum" license = "MIT" [dependencies] -colored = "2.0" +colored = "2" dirs = "3" fern = "0.6" log = "0.4" -serde = { version = "1.0", features = ["derive"] } +serde = { version = "1", features = ["derive"] } toml = "0.5" diff --git a/mumlib/src/error.rs b/mumlib/src/error.rs index 6b7dccd..459ede0 100644 --- a/mumlib/src/error.rs +++ b/mumlib/src/error.rs @@ -13,6 +13,8 @@ pub enum Error { InvalidServerPassword, } +impl std::error::Error for Error {} + impl fmt::Display for Error { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { match self { @@ -43,6 +45,9 @@ impl fmt::Display for ChannelIdentifierError { } } +impl std::error::Error for ChannelIdentifierError {} + +#[derive(Debug)] pub enum ConfigError { InvalidConfig, TOMLErrorSer(toml::ser::Error), @@ -52,6 +57,8 @@ pub enum ConfigError { IOError(std::io::Error), } +impl std::error::Error for ConfigError {} + impl fmt::Display for ConfigError { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { match self { |
