From eb02006acd26235164e3998886131cc89ec4bee6 Mon Sep 17 00:00:00 2001 From: chrysn Date: Tue, 3 Oct 2023 22:25:01 +0200 Subject: [PATCH] refactor: Ensure FromHex is only used in tests --- lib/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/lib.rs b/lib/src/lib.rs index 3c9b79ab..e258bb6a 100644 --- a/lib/src/lib.rs +++ b/lib/src/lib.rs @@ -15,7 +15,6 @@ mod c_wrapper; use c_wrapper::*; use edhoc_consts::*; -use hex::FromHex; #[derive(Default, Copy, Clone, Debug)] pub struct EdhocInitiatorState<'a> { @@ -362,6 +361,7 @@ pub fn generate_connection_identifier() -> i8 { mod test { use super::*; use edhoc_consts::*; + use hex::FromHex; use hexlit::hex; const ID_CRED_I: &[u8] = &hex!("a104412b");