From 6056f3b96366826a965159948cbf4d787fe1b8f0 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 14 Mar 2021 05:04:34 +0100 Subject: Import `thiserror::Error` as `Error` Now that we're no longer using `anyhow::Error` as `Error`. --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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), -- cgit v1.2.3