Skip to content

Commit

Permalink
Fix clippy warnings from rust 1.77
Browse files Browse the repository at this point in the history
  • Loading branch information
malor committed Mar 24, 2024
1 parent 0790f27 commit ccb59c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web/tracing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ pub struct RequestSpan;
//
// Using a thread-local is fine, because both on_request()/on_response() and the
// actual request handler are executed in the same thread.
thread_local!(static REQUEST_SPAN: RefCell<Option<EnteredSpan>> = RefCell::new(None));
thread_local!(static REQUEST_SPAN: RefCell<Option<EnteredSpan>> = const { RefCell::new(None) });

#[rocket::async_trait]
impl Fairing for RequestSpan {
Expand Down

0 comments on commit ccb59c7

Please sign in to comment.