aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2021-03-14 05:04:34 +0100
committerTeddy Wing2021-03-14 05:04:34 +0100
commit6056f3b96366826a965159948cbf4d787fe1b8f0 (patch)
tree5247d340634a2b3da3f0ce5f38f679bc5d5d2bdb
parentfdec3a77f0ff78530a07de31372af6cbb761369a (diff)
downloadmutt-ottolangy-6056f3b96366826a965159948cbf4d787fe1b8f0.tar.bz2
Import `thiserror::Error` as `Error`
Now that we're no longer using `anyhow::Error` as `Error`.
-rw-r--r--src/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index 8e1bec6..199862c 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -15,7 +15,7 @@
use exitcode;
use mailparse;
-use thiserror;
+use thiserror::Error;
use whatlang::{self, Lang};
use xdg;
@@ -40,7 +40,7 @@ const ATTRIBUTION_EN: &'static str =
"#;
-#[derive(thiserror::Error, Debug)]
+#[derive(Error, Debug)]
enum WrapError {
#[error("unable to parse email body: {0}")]
ParseMail(#[from] mailparse::MailParseError),
@@ -55,7 +55,7 @@ enum WrapError {
Io(#[from] std::io::Error),
}
-#[derive(thiserror::Error, Debug)]
+#[derive(Error, Debug)]
enum OttolangyError {
#[error("failed to read from stdin: {0}")]
ReadStdin(#[from] std::io::Error),