We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0790f27 + ccb59c7 commit e5d5869Copy full SHA for e5d5869
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