aboutsummaryrefslogtreecommitdiffstats
path: root/mumlib/src
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2021-04-03 11:09:06 +0200
committerGustav Sörnäs <gustav@sornas.net>2021-04-03 11:09:06 +0200
commitd85c652d8f5e3c01fec988cc77f2e199dc2f3dce (patch)
tree25045b7b3758a3ae18743e691c4a018921f8fe7d /mumlib/src
parent3f6281020b72ba949147a282c18c60a2842ad3dc (diff)
downloadmum-d85c652d8f5e3c01fec988cc77f2e199dc2f3dce.tar.gz
clap -> structopt
I tried to translate the current clap-code into structopt and save any modifications for later, /but/, some things would've taken too much energy. But I've forgotten what those were.
Diffstat (limited to 'mumlib/src')
-rw-r--r--mumlib/src/error.rs7
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 {