@@ -7,7 +7,7 @@ use thiserror::Error;
77///
88/// [W3C Trace Context spec]: https://www.w3.org/TR/trace-context/#traceparent-header-field-values
99#[ derive( Display , Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
10- #[ display( fmt = "00-{trace_id}-{span_id}-{flags}" ) ]
10+ #[ display( "00-{trace_id}-{span_id}-{flags}" ) ]
1111pub struct TraceParent {
1212 trace_id : TraceId ,
1313 span_id : SpanId ,
@@ -88,17 +88,17 @@ macro_rules! parseable_from_hex {
8888}
8989
9090#[ derive( Display , Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
91- #[ display( fmt = "{_0:032x}" ) ]
91+ #[ display( "{_0:032x}" ) ]
9292pub struct TraceId ( u128 ) ;
9393parseable_from_hex ! ( TraceId , u128 ) ;
9494
9595#[ derive( Display , Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
96- #[ display( fmt = "{_0:016x}" ) ]
96+ #[ display( "{_0:016x}" ) ]
9797pub struct SpanId ( u64 ) ;
9898parseable_from_hex ! ( SpanId , u64 ) ;
9999
100100#[ derive( Display , Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
101- #[ display( fmt = "{_0:02x}" ) ]
101+ #[ display( "{_0:02x}" ) ]
102102pub struct TraceFlags ( u8 ) ;
103103parseable_from_hex ! ( TraceFlags , u8 ) ;
104104
0 commit comments