Skip to content

Commit 34c9ced

Browse files
committed
Enable info! for no_std
1 parent 91a1e13 commit 34c9ced

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@
257257
#[cfg(feature = "log")] #[macro_use] extern crate log;
258258
#[cfg(not(feature = "log"))] macro_rules! trace { ($($x:tt)*) => () }
259259
#[cfg(not(feature = "log"))] macro_rules! debug { ($($x:tt)*) => () }
260-
#[cfg(all(feature="std", not(feature = "log")))] macro_rules! info { ($($x:tt)*) => () }
260+
#[cfg(not(feature = "log"))] macro_rules! info { ($($x:tt)*) => () }
261261
#[cfg(all(feature="std", not(feature = "log")))] macro_rules! warn { ($($x:tt)*) => () }
262262
#[cfg(all(feature="std", not(feature = "log")))] macro_rules! error { ($($x:tt)*) => () }
263263

@@ -1250,7 +1250,7 @@ mod test {
12501250
80, 81, 82, 83, 84, 85, 86, 87];
12511251
for &n in lengths.iter() {
12521252
let mut buffer = [0u8; 87];
1253-
let mut v = &mut buffer[0..n];
1253+
let v = &mut buffer[0..n];
12541254
r.fill_bytes(v);
12551255

12561256
// use this to get nicer error messages.

0 commit comments

Comments
 (0)