Skip to content

Commit

Permalink
lib: Specify different BTreeMap for std and alloc
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Fanelli <[email protected]>
  • Loading branch information
tylerfanelli committed Dec 7, 2024
1 parent 87e1351 commit bde6a5d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
extern crate alloc;

#[cfg(all(feature = "alloc", not(feature = "std")))]
use alloc::string::String;
use alloc::{collections::btree_map::BTreeMap, string::String};
use serde_json::Value;
use std::collections::BTreeMap;
#[cfg(feature = "std")]
use std::string::String;
#[cfg(all(feature = "std", not(feature = "alloc")))]
use std::{collections::BTreeMap, string::String};

use serde::{Deserialize, Serialize};

Expand Down

0 comments on commit bde6a5d

Please sign in to comment.