Skip to content
This repository was archived by the owner on Nov 30, 2022. It is now read-only.

Commit e534213

Browse files
committed
f 1.29
1 parent d5b230a commit e534213

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/hex.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
//!
1717
1818
#[cfg(any(feature = "std", feature = "alloc"))]
19-
use alloc::{format, string::String, vec::Vec};
19+
use alloc::{string::String, vec::Vec};
20+
#[cfg(feature = "alloc")]
21+
use alloc::format;
2022

2123
use core::{fmt, str};
2224
use Hash;

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939

4040
#[cfg(any(test, feature="std"))] extern crate core;
4141
#[cfg(feature="core2")] extern crate core2;
42-
#[cfg(any(feature = "std", feature = "alloc"))] extern crate alloc;
42+
#[cfg(any(feature = "alloc"))] extern crate alloc;
43+
#[cfg(any(feature = "std"))] use std as alloc;
4344
#[cfg(feature="serde")] pub extern crate serde;
4445
#[cfg(all(test,feature="serde"))] extern crate serde_test;
4546

0 commit comments

Comments
 (0)