Change TRACING_SET to static (#7607)

* change TRACING_SET to static

* Update primitives/io/src/lib.rs

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* modify test with nested spans

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
Andrew PlazaandBastian Köcher authored and GitHub committed 2020-11-28 09:40:24 +01:00
1 parent 96461be248
commit f6dc35284f
3 files changed
+21 -1

No files matched your search

+1 -1
View File
@@ -1093,7 +1093,7 @@ mod tracing_setup {
};
use super::{wasm_tracing, Crossing};
const TRACING_SET : AtomicBool = AtomicBool::new(false);
static TRACING_SET: AtomicBool = AtomicBool::new(false);
/// The PassingTracingSubscriber implements `tracing_core::Subscriber`