Do not panic while panicking (#7167)

* Do not panic while panicking

* Update primitives/runtime/src/lib.rs

Co-authored-by: David <dvdplm@gmail.com>

* Move function to `sp-std`

Co-authored-by: David <dvdplm@gmail.com>
This commit is contained in:
Bastian KöcherandDavid authored and GitHub committed 2020-09-22 07:36:46 +00:00
1 parent ea21afa42a
commit 38eed5f0ac
3 files changed
+31 -1

No files matched your search

+4
View File
@@ -44,3 +44,7 @@ pub mod collections {
pub use std::collections::btree_set;
pub use std::collections::vec_deque;
}
pub mod thread {
pub use std::thread::panicking;
}