Skip to content

Commit

Permalink
Replace use of AtomicU64 with AtomicUsize.
Browse files Browse the repository at this point in the history
This should be sufficient as std requires pointer-sized atomic support.
  • Loading branch information
thoren-d committed Mar 15, 2024
1 parent 5b13e73 commit 8e47c99
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use std::{
marker::PhantomData,
path::Path,
sync::{
atomic::{AtomicU64, Ordering},
atomic::{AtomicUsize, Ordering},
Arc, Mutex,
},
};
Expand Down Expand Up @@ -40,7 +40,7 @@ where
{
out: Arc<Mutex<Sender<Message>>>,
start: std::time::Instant,
max_tid: AtomicU64,
max_tid: AtomicUsize,
include_args: bool,
include_locations: bool,
trace_style: TraceStyle,
Expand Down Expand Up @@ -407,7 +407,7 @@ where
let layer = ChromeLayer {
out: Arc::new(Mutex::new(tx)),
start: std::time::Instant::now(),
max_tid: AtomicU64::new(0),
max_tid: AtomicUsize::new(0),
name_fn: builder.name_fn.take(),
cat_fn: builder.cat_fn.take(),
include_args: builder.include_args,
Expand Down

0 comments on commit 8e47c99

Please sign in to comment.