Skip to content

Commit

Permalink
Fix beta clippy lints.
Browse files Browse the repository at this point in the history
  • Loading branch information
thoren-d committed Mar 15, 2024
1 parent 51595cd commit 95ceeaf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ use std::{
};

thread_local! {
static OUT: RefCell<Option<Sender<Message>>> = RefCell::new(None);
static TID: RefCell<Option<usize>> = RefCell::new(None);
static OUT: RefCell<Option<Sender<Message>>> = const { RefCell::new(None) };
static TID: RefCell<Option<usize>> = const { RefCell::new(None) };
}

type NameFn<S> = Box<dyn Fn(&EventOrSpan<'_, '_, S>) -> String + Send + Sync>;
Expand Down Expand Up @@ -454,7 +454,8 @@ where
EventOrSpan::Span(s) => s
.extensions()
.get::<ArgsWrapper>()
.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());
Expand Down

0 comments on commit 95ceeaf

Please sign in to comment.