diff options
| author | Rubens Brandao <git@rubens.io> | 2021-04-09 20:09:37 +0200 |
|---|---|---|
| committer | Rubens Brandao <git@rubens.io> | 2021-04-09 20:09:37 +0200 |
| commit | 47c47bf462d508176060f575960d96f01908bb70 (patch) | |
| tree | 9e3f7b328ae74e7c80b0843ffc66ce29a17108de /mumlib/src | |
| parent | 7c5f60f210bfd05ea22d3a65f04e245989fdaade (diff) | |
| parent | a13d4b7d10aff81823b8cabf1d72daa881d36065 (diff) | |
| download | mum-47c47bf462d508176060f575960d96f01908bb70.tar.gz | |
Merge branch 'main' into multiple-audio
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 { |
