Skip to content

Commit ccb59c7

Browse files
committed
Fix clippy warnings from rust 1.77
1 parent 0790f27 commit ccb59c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/web/tracing.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ pub struct RequestSpan;
8585
//
8686
// Using a thread-local is fine, because both on_request()/on_response() and the
8787
// actual request handler are executed in the same thread.
88-
thread_local!(static REQUEST_SPAN: RefCell<Option<EnteredSpan>> = RefCell::new(None));
88+
thread_local!(static REQUEST_SPAN: RefCell<Option<EnteredSpan>> = const { RefCell::new(None) });
8989

9090
#[rocket::async_trait]
9191
impl Fairing for RequestSpan {

0 commit comments

Comments
 (0)