chiark / gitweb /
drop unused type alias (and fix one mistaken reference to it)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 28 Nov 2020 00:00:34 +0000 (00:00 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 28 Nov 2020 00:00:34 +0000 (00:00 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/cmdlistener.rs
src/imports.rs

index 465812c4273740613e85c92a9c424daa4973042f..a207373e739900b237642e6ab494086921a44193 100644 (file)
@@ -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<E> From<&E> for EuidLookupError where E : Display {
           fn from(e: &E) -> Self { EuidLookupError(format!("{}",e)) }
         }
 
index 645165434f66abbbdf30ef65b4afe1a2dbb66bb7..0f44da6b9242eb68a9a7f886086853a26a88c035 100644 (file)
@@ -120,7 +120,6 @@ pub fn default<T: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;