diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-04-06 20:43:11 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-06 20:43:11 +0200 |
| commit | 06a765afc73ec1f8f2af27f4ea2730ddaaf05852 (patch) | |
| tree | 43607aab322996c4ff4ab6bf06a1345c98b98297 /mumlib/src | |
| parent | 1734a72d3caff4f8831f4b366fdb818fddecf32f (diff) | |
| parent | cd35ea952d0615793c08ad2c07f5d1245ab8f28f (diff) | |
| download | mum-06a765afc73ec1f8f2af27f4ea2730ddaaf05852.tar.gz | |
Merge pull request #81 from mum-rs/structopt
Diffstat (limited to 'mumlib/src')
| -rw-r--r-- | mumlib/src/error.rs | 7 |
1 files changed, 7 insertions, 0 deletions
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 { |
