Skip to content

Commit 5ef4f6f

Browse files
committed
Enable info! for no_std
1 parent fa37f10 commit 5ef4f6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

+2-2
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

263263

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

12551255
// use this to get nicer error messages.

0 commit comments

Comments
 (0)