Skip to content

Commit 8450ad5

Browse files
committed
Enable info! for no_std
1 parent 3839439 commit 8450ad5

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

@@ -1284,7 +1284,7 @@ mod test {
12841284
80, 81, 82, 83, 84, 85, 86, 87];
12851285
for &n in lengths.iter() {
12861286
let mut buffer = [0u8; 87];
1287-
let mut v = &mut buffer[0..n];
1287+
let v = &mut buffer[0..n];
12881288
r.fill_bytes(v);
12891289

12901290
// use this to get nicer error messages.

0 commit comments

Comments
 (0)