From 46ecc5678b79ad5e046c861d6a9ee9f17e14c1e3 Mon Sep 17 00:00:00 2001 From: Ivan Fraixedes Date: Fri, 20 Oct 2023 20:03:29 +0200 Subject: [PATCH] uplink(fix): Fix typo in an Uplink Error enum variant Fix a typo in one of the variants of error::Uplink enum. --- uplink/src/error.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/uplink/src/error.rs b/uplink/src/error.rs index eb8f16b..d8739df 100644 --- a/uplink/src/error.rs +++ b/uplink/src/error.rs @@ -216,7 +216,7 @@ pub enum Uplink { /// An Edge Auth service network or protocol error. EdgeAuthDialFailed(String), /// An Edge Auth service internal error. - EdgeRegsterAccessFailed(String), + EdgeRegisterAccessFailed(String), /// Unknowns isn't an actual code in the FFI constants. It's mostly used to map a code when it /// doesn't match any and have not to panic. Callers should report this as a BUG that may be @@ -268,7 +268,7 @@ impl Uplink { ulksys::UPLINK_ERROR_STORAGE_LIMIT_EXCEEDED => Self::StorageLimitExceeded(msg), ulksys::UPLINK_ERROR_UPLOAD_DONE => Self::UploadDone(msg), ulksys::EDGE_ERROR_AUTH_DIAL_FAILED => Self::EdgeAuthDialFailed(msg), - ulksys::EDGE_ERROR_REGISTER_ACCESS_FAILED => Self::EdgeRegsterAccessFailed(msg), + ulksys::EDGE_ERROR_REGISTER_ACCESS_FAILED => Self::EdgeRegisterAccessFailed(msg), _ => Self::Unknown(msg), }) } @@ -307,7 +307,7 @@ impl fmt::Display for Uplink { Self::StorageLimitExceeded(msg) => ("storage limit exceeded", msg), Self::UploadDone(msg) => ("upload done", msg), Self::EdgeAuthDialFailed(msg) => ("dial to auth service failed", msg), - Self::EdgeRegsterAccessFailed(msg) => ("register access for edge service failed", msg), + Self::EdgeRegisterAccessFailed(msg) => ("register access for edge service failed", msg), Self::Unknown(msg) => ("unknown", msg), };