From 95ceeaf6596bc6f66ef24e5c97a0a944576b0fb0 Mon Sep 17 00:00:00 2001 From: Thoren Paulson Date: Fri, 15 Mar 2024 14:08:20 -0700 Subject: [PATCH] Fix beta clippy lints. --- src/lib.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 66036af..e46a55d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -26,8 +26,8 @@ use std::{ }; thread_local! { - static OUT: RefCell>> = RefCell::new(None); - static TID: RefCell> = RefCell::new(None); + static OUT: RefCell>> = const { RefCell::new(None) }; + static TID: RefCell> = const { RefCell::new(None) }; } type NameFn = Box) -> String + Send + Sync>; @@ -454,7 +454,8 @@ where EventOrSpan::Span(s) => s .extensions() .get::() - .map(|e| Arc::clone(&e.args)), + .map(|e| &e.args) + .cloned(), }; let name = name.unwrap_or_else(|| meta.name().into()); let target = target.unwrap_or_else(|| meta.target().into());