aboutsummaryrefslogtreecommitdiffstats
path: root/mumlib
diff options
context:
space:
mode:
authorRubens Brandao <git@rubens.io>2021-04-09 20:09:37 +0200
committerRubens Brandao <git@rubens.io>2021-04-09 20:09:37 +0200
commit47c47bf462d508176060f575960d96f01908bb70 (patch)
tree9e3f7b328ae74e7c80b0843ffc66ce29a17108de /mumlib
parent7c5f60f210bfd05ea22d3a65f04e245989fdaade (diff)
parenta13d4b7d10aff81823b8cabf1d72daa881d36065 (diff)
downloadmum-47c47bf462d508176060f575960d96f01908bb70.tar.gz
Merge branch 'main' into multiple-audio
Diffstat (limited to 'mumlib')
-rw-r--r--mumlib/Cargo.toml5
-rw-r--r--mumlib/src/error.rs7
2 files changed, 10 insertions, 2 deletions
diff --git a/mumlib/Cargo.toml b/mumlib/Cargo.toml
index 43bd8c5..245b108 100644
--- a/mumlib/Cargo.toml
+++ b/mumlib/Cargo.toml
@@ -9,11 +9,12 @@ Exposed parts of mum.
"""
repository = "https://github.com/sornas/mum"
license = "MIT"
+readme = "../README.md"
[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 {