From: Ian Jackson Date: Sat, 28 Nov 2020 00:00:34 +0000 (+0000) Subject: drop unused type alias (and fix one mistaken reference to it) X-Git-Tag: otter-0.2.0~315 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=94ea198583480d75924805abaa6c60caaf71504b;p=otter.git drop unused type alias (and fix one mistaken reference to it) Signed-off-by: Ian Jackson --- 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;