We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8151af commit 6efb9b8Copy full SHA for 6efb9b8
2 files changed
crates/wire/src/common.rs
@@ -51,7 +51,7 @@ impl<'a> From<&'a tracing_core::Metadata<'a>> for Metadata {
51
impl From<&'static tracing_core::Metadata<'static>> for NewMetadata {
52
fn from(value: &'static tracing_core::Metadata<'static>) -> Self {
53
NewMetadata {
54
- id: Some(value as *const _ as u64),
+ id: Some(std::ptr::from_ref(value) as u64),
55
metadata: Some(value.into()),
56
}
57
crates/wire/src/spans.rs
@@ -20,7 +20,7 @@ impl SpanEvent {
20
Self {
21
event: Some(span_event::Event::NewSpan(span_event::Span {
22
id: id.into_u64(),
23
- metadata_id: metadata as *const _ as u64,
+ metadata_id: std::ptr::from_ref(metadata) as u64,
24
fields,
25
at: Some(at),
26
parent: parent.map(|id| id.into_u64()),
0 commit comments