From 94ea198583480d75924805abaa6c60caaf71504b Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 28 Nov 2020 00:00:34 +0000 Subject: [PATCH] drop unused type alias (and fix one mistaken reference to it) Signed-off-by: Ian Jackson --- src/cmdlistener.rs | 2 +- src/imports.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cmdlistener.rs b/src/cmdlistener.rs index 465812c4..a207373e 100644 --- a/src/cmdlistener.rs +++ b/src/cmdlistener.rs @@ -844,7 +844,7 @@ impl CommandListener { #[derive(Error,Debug)] struct EuidLookupError(String); display_as_debug!{EuidLookupError} - impl From<&E> for EuidLookupError where E : Display { + impl From<&E> for EuidLookupError where E : Display { fn from(e: &E) -> Self { EuidLookupError(format!("{}",e)) } } diff --git a/src/imports.rs b/src/imports.rs index 64516543..0f44da6b 100644 --- a/src/imports.rs +++ b/src/imports.rs @@ -120,7 +120,6 @@ pub fn default() -> T { Default::default() } pub enum Impossible { } display_as_debug!(Impossible); -pub type E = anyhow::Error; pub type AE = anyhow::Error; pub type OE = OnlineError; -- 2.30.2