Skip to content

Commit

Permalink
Enable info! for no_std
Browse files Browse the repository at this point in the history
  • Loading branch information
pitdicker committed Feb 3, 2018
1 parent fa37f10 commit 5ef4f6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@
#[cfg(feature = "log")] #[macro_use] extern crate log;
#[cfg(not(feature = "log"))] macro_rules! trace { ($($x:tt)*) => () }
#[cfg(not(feature = "log"))] macro_rules! debug { ($($x:tt)*) => () }
#[cfg(all(feature="std", not(feature = "log")))] macro_rules! info { ($($x:tt)*) => () }
#[cfg(not(feature = "log"))] macro_rules! info { ($($x:tt)*) => () }
#[cfg(all(feature="std", not(feature = "log")))] macro_rules! warn { ($($x:tt)*) => () }


Expand Down Expand Up @@ -1249,7 +1249,7 @@ mod test {
80, 81, 82, 83, 84, 85, 86, 87];
for &n in lengths.iter() {
let mut buffer = [0u8; 87];
let mut v = &mut buffer[0..n];
let v = &mut buffer[0..n];
r.fill_bytes(v);

// use this to get nicer error messages.
Expand Down

0 comments on commit 5ef4f6f

Please sign in to comment.