Skip to content

Commit

Permalink
Merge pull request #4 from tomusdrw/td-nodef
Browse files Browse the repository at this point in the history
Make sure tests pass when --no-default-features is being passed.
  • Loading branch information
debris authored Jan 10, 2020
2 parents 6eb7179 + d1e26e8 commit 7c8e13d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,10 @@ impl<'a> Iterator for FromHexIter<'a> {
#[cfg(test)]
mod tests {
use super::{FromHex, ToHex};
#[cfg(not(feature = "std"))]
extern crate alloc;
#[cfg(not(feature = "std"))]
use alloc::{string::String, vec::Vec, format};

#[test]
pub fn test_to_hex() {
Expand Down

0 comments on commit 7c8e13d

Please sign in to comment.