Skip to content

Commit

Permalink
refactor: Ensure FromHex is only used in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chrysn committed Oct 3, 2023
1 parent c7aae85 commit eb02006
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit eb02006

Please sign in to comment.