Fix std/core crates (#2489)

- Add convert
- Add btree_set for without_std
This commit is contained in:
Gavin Wood
2019-05-06 17:11:45 +02:00
committed by GitHub
parent 9f61b95ecd
commit 1436e6d734
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -32,6 +32,7 @@ pub use std::slice;
pub use std::vec; pub use std::vec;
pub use std::default; pub use std::default;
pub use std::result; pub use std::result;
pub use std::convert;
pub mod collections { pub mod collections {
pub use std::collections::btree_map; pub use std::collections::btree_map;
+2
View File
@@ -64,10 +64,12 @@ pub use core::ptr;
pub use core::slice; pub use core::slice;
pub use core::default; pub use core::default;
pub use core::result; pub use core::result;
pub use core::convert;
// We are trying to avoid certain things here, such as `core::string` // We are trying to avoid certain things here, such as `core::string`
// (if you need `String` you most probably doing something wrong, since // (if you need `String` you most probably doing something wrong, since
// runtime doesn't require anything human readable). // runtime doesn't require anything human readable).
pub mod collections { pub mod collections {
pub use alloc::collections::btree_map; pub use alloc::collections::btree_map;
pub use alloc::collections::btree_set;
} }