We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0790f27 commit ccb59c7Copy full SHA for ccb59c7
src/web/tracing.rs
@@ -85,7 +85,7 @@ pub struct RequestSpan;
85
//
86
// Using a thread-local is fine, because both on_request()/on_response() and the
87
// actual request handler are executed in the same thread.
88
-thread_local!(static REQUEST_SPAN: RefCell<Option<EnteredSpan>> = RefCell::new(None));
+thread_local!(static REQUEST_SPAN: RefCell<Option<EnteredSpan>> = const { RefCell::new(None) });
89
90
#[rocket::async_trait]
91
impl Fairing for RequestSpan {
0 commit comments