@@ -21,7 +21,7 @@ use tracing_subscriber::registry::{LookupSpan, SpanRef};
2121pub ( crate ) type ProviderGroupType = std:: borrow:: Cow < ' static , str > ;
2222
2323// These are automagically generated by the compiler for the start and stop of section _etw_kw
24- extern "C" {
24+ unsafe extern "C" {
2525 #[ link_name = "__start__etw_kw" ]
2626 pub ( crate ) static _start__etw_kw: usize ;
2727 #[ link_name = "__stop__etw_kw" ]
@@ -56,7 +56,7 @@ impl AddFieldAndValue for &'_ mut eventheader_dynamic::EventBuilder {
5656 ValueTypes :: v_bool( b) => {
5757 self . add_value ( fv. field_name , * b, FieldFormat :: Boolean , 0 ) ;
5858 }
59- ValueTypes :: v_str( ref s) => {
59+ ValueTypes :: v_str( s) => {
6060 self . add_str ( fv. field_name , s. as_ref ( ) , FieldFormat :: Default , 0 ) ;
6161 }
6262 ValueTypes :: v_char( c) => {
@@ -128,7 +128,7 @@ impl<OutMode: OutputMode> crate::native::ProviderTraits for Provider<OutMode> {
128128 for < ' a > & ' a G : Into < crate :: native:: GuidWrapper > ,
129129 {
130130 let mut options = eventheader_dynamic:: Provider :: new_options ( ) ;
131- if let Some ( ref name) = provider_group {
131+ if let Some ( name) = provider_group {
132132 options = * options. group_name ( name) ;
133133 }
134134 let mut provider = eventheader_dynamic:: Provider :: new ( provider_name, & options) ;
0 commit comments