diff options
author | Teddy Wing | 2021-03-14 05:04:34 +0100 |
---|---|---|
committer | Teddy Wing | 2021-03-14 05:04:34 +0100 |
commit | 6056f3b96366826a965159948cbf4d787fe1b8f0 (patch) | |
tree | 5247d340634a2b3da3f0ce5f38f679bc5d5d2bdb /src/main.rs | |
parent | fdec3a77f0ff78530a07de31372af6cbb761369a (diff) | |
download | mutt-ottolangy-6056f3b96366826a965159948cbf4d787fe1b8f0.tar.bz2 |
Import `thiserror::Error` as `Error`
Now that we're no longer using `anyhow::Error` as `Error`.
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 6 |
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), |