From 5ed4a3e1f1695927086f2febaf00f31a85c16e25 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 23 May 2021 23:38:38 +0100 Subject: [PATCH] ConnectionEuidDiscoverError: Fix typo in type name Signed-off-by: Ian Jackson --- daemon/cmdlistener.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/daemon/cmdlistener.rs b/daemon/cmdlistener.rs index 309ca628..7df33c6e 100644 --- a/daemon/cmdlistener.rs +++ b/daemon/cmdlistener.rs @@ -44,7 +44,7 @@ struct CommandStream<'d> { } struct CommandStreamData<'d> { - euid: Result, + euid: Result, desc: &'d str, account: Option, superuser: Option, @@ -1454,7 +1454,7 @@ impl CommandListener { match (||{ let euid = conn.initial_peer_credentials() .map(|creds| creds.euid()) - .map_err(|e| ConnectionEuidDiscoverEerror(format!("{}", e))); + .map_err(|e| ConnectionEuidDiscoverError(format!("{}", e))); #[derive(Error,Debug)] struct EuidLookupError(String); @@ -1496,10 +1496,10 @@ impl CommandListener { #[derive(Debug,Error,Clone)] #[error("connection euid lookup failed (at connection initiation): {0}")] -pub struct ConnectionEuidDiscoverEerror(String); +pub struct ConnectionEuidDiscoverError(String); -impl From for AuthorisationError { - fn from(e: ConnectionEuidDiscoverEerror) -> AuthorisationError { +impl From for AuthorisationError { + fn from(e: ConnectionEuidDiscoverError) -> AuthorisationError { AuthorisationError(format!("{}", e)) } } -- 2.30.2