From ccb59c791f1be1697580ba90e9978b640bd91177 Mon Sep 17 00:00:00 2001 From: Roman Podoliaka Date: Sun, 24 Mar 2024 20:12:46 +0000 Subject: [PATCH] Fix clippy warnings from rust 1.77 --- src/web/tracing.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/tracing.rs b/src/web/tracing.rs index e4b8b19..8d49c2d 100644 --- a/src/web/tracing.rs +++ b/src/web/tracing.rs @@ -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> = RefCell::new(None)); +thread_local!(static REQUEST_SPAN: RefCell> = const { RefCell::new(None) }); #[rocket::async_trait] impl Fairing for RequestSpan {