From 8e47c996b2a4e83bef0fb808ddc0e49ea4d25985 Mon Sep 17 00:00:00 2001 From: Thoren Paulson Date: Fri, 15 Mar 2024 13:49:53 -0700 Subject: [PATCH] Replace use of AtomicU64 with AtomicUsize. This should be sufficient as std requires pointer-sized atomic support. --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 2a5b47e..1534bec 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,7 +12,7 @@ use std::{ marker::PhantomData, path::Path, sync::{ - atomic::{AtomicU64, Ordering}, + atomic::{AtomicUsize, Ordering}, Arc, Mutex, }, }; @@ -40,7 +40,7 @@ where { out: Arc>>, start: std::time::Instant, - max_tid: AtomicU64, + max_tid: AtomicUsize, include_args: bool, include_locations: bool, trace_style: TraceStyle, @@ -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,