Skip to content

Commit aa7af63

Browse files
committed
Fix
1 parent 1f524ed commit aa7af63

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/native/common_schema/etw_cs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use tracelogging::*;
1212
use tracelogging_dynamic::EventBuilder;
1313
use tracing_subscriber::registry::{LookupSpan, SpanRef};
1414

15-
thread_local! {static EBW: RefCell<EventBuilder> = const { RefCell::new(EventBuilder::new());} }
15+
thread_local! {static EBW: RefCell<EventBuilder> = const { RefCell::new(EventBuilder::new()) } }
1616

1717
pub(crate) struct CommonSchemaPartCBuilder<'a> {
1818
pub(crate) eb: &'a mut EventBuilder,

src/native/common_schema/user_events_cs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use std::{
1313
};
1414
use tracing_subscriber::registry::{LookupSpan, SpanRef};
1515

16-
thread_local! {static EBW: RefCell<EventBuilder> = const { RefCell::new(EventBuilder::new());} }
16+
thread_local! {static EBW: RefCell<EventBuilder> = const { RefCell::new(EventBuilder::new()) } }
1717

1818
pub(crate) struct CommonSchemaPartCBuilder<'a> {
1919
pub(crate) eb: &'a mut EventBuilder,

src/native/etw.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub(crate) static mut _start__etw_kw: usize = usize::from_ne_bytes(*b"RSETW000")
1313
#[link_section = ".rsdata$zRSETW9"]
1414
pub(crate) static mut _stop__etw_kw: usize = usize::from_ne_bytes(*b"RSETW999");
1515

16-
thread_local! {static EBW: RefCell<EventBuilder> = const { RefCell::new(EventBuilder::new());} }
16+
thread_local! {static EBW: RefCell<EventBuilder> = const { RefCell::new(EventBuilder::new()) } }
1717

1818
struct Win32SystemTime {
1919
st: [u16; 8],

src/native/user_events.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ extern "C" {
1717
#[used]
1818
static mut ETW_META_PTR: *const crate::_details::EventMetadata = core::ptr::null();
1919

20-
thread_local! {static EBW: RefCell<EventBuilder> = const { RefCell::new(EventBuilder::new());} }
20+
thread_local! {static EBW: RefCell<EventBuilder> = const { RefCell::new(EventBuilder::new()) } }
2121

2222
impl<T> AddFieldAndValue<T> for &'_ mut eventheader_dynamic::EventBuilder {
2323
fn add_field_value(&mut self, fv: &FieldAndValue) {

0 commit comments

Comments
 (0)