Skip to content

Commit

Permalink
Fix no-std tests failing to import CanonicalizationScheme
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxxep committed Nov 26, 2024
1 parent ca66ec9 commit a5f5603
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ciborium/tests/canonical.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ use ciborium::tag::Required;
use ciborium::value::CanonicalValue;
use rand::prelude::*;
use std::collections::BTreeMap;
use ciborium::ser::CanonicalizationScheme;

macro_rules! cval {
($x:expr) => {
Expand Down Expand Up @@ -66,7 +65,10 @@ fn map_old() {

/// Use length-first ordering for keys.
#[test]
#[cfg(feature = "std")]
fn map_rfc7049() {
use ciborium::ser::CanonicalizationScheme;

let mut map = BTreeMap::new();
map.insert(cval!(false), val!(2));
map.insert(cval!([-1]), val!(5));
Expand All @@ -93,6 +95,8 @@ fn map_rfc7049() {
#[test]
#[cfg(feature = "std")]
fn map_rfc8949() {
use ciborium::ser::CanonicalizationScheme;

let mut map = BTreeMap::new();
map.insert(cval!(false), val!(2));
map.insert(cval!([-1]), val!(5));
Expand Down

0 comments on commit a5f5603

Please sign in to comment.