From b9aad6ffaa024e55e08a4a27beeec03d7a88f9d5 Mon Sep 17 00:00:00 2001 From: Dmitry Lavrenov Date: Wed, 17 Jul 2024 17:51:45 +0200 Subject: [PATCH] Allow dead_code for robonode-server related errors --- crates/robonode-server/src/logic/op_authenticate.rs | 1 + crates/robonode-server/src/logic/op_enroll.rs | 1 + crates/robonode-server/src/logic/op_get_facetec_session_token.rs | 1 + 3 files changed, 3 insertions(+) diff --git a/crates/robonode-server/src/logic/op_authenticate.rs b/crates/robonode-server/src/logic/op_authenticate.rs index b8e1209c7..460db1e6d 100644 --- a/crates/robonode-server/src/logic/op_authenticate.rs +++ b/crates/robonode-server/src/logic/op_authenticate.rs @@ -36,6 +36,7 @@ pub struct Response { } /// Errors for the authenticate operation. +#[allow(dead_code)] #[derive(Debug)] pub enum Error { /// The provided opaque liveness data could not be decoded. diff --git a/crates/robonode-server/src/logic/op_enroll.rs b/crates/robonode-server/src/logic/op_enroll.rs index 59c4518b6..f118965ef 100644 --- a/crates/robonode-server/src/logic/op_enroll.rs +++ b/crates/robonode-server/src/logic/op_enroll.rs @@ -27,6 +27,7 @@ pub struct Request { pub struct Response; /// The errors on the enroll operation. +#[allow(dead_code)] #[derive(Debug)] pub enum Error { /// The provided public key failed to load because it was invalid. diff --git a/crates/robonode-server/src/logic/op_get_facetec_session_token.rs b/crates/robonode-server/src/logic/op_get_facetec_session_token.rs index 5e6db887d..360754e41 100644 --- a/crates/robonode-server/src/logic/op_get_facetec_session_token.rs +++ b/crates/robonode-server/src/logic/op_get_facetec_session_token.rs @@ -19,6 +19,7 @@ pub struct Response { } /// Errors for the get facetec session token operation. +#[allow(dead_code)] #[derive(Debug)] pub enum Error { /// Internal error at session token retrieval due to the underlying request