From: Ian Jackson Date: Sun, 23 May 2021 22:38:38 +0000 (+0100) Subject: ConnectionEuidDiscoverError: Fix typo in type name X-Git-Tag: otter-0.7.0~234 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=5ed4a3e1f1695927086f2febaf00f31a85c16e25;p=otter.git ConnectionEuidDiscoverError: Fix typo in type name Signed-off-by: Ian Jackson --- 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)) } }