diff --git a/tracing-attributes/src/lib.rs b/tracing-attributes/src/lib.rs index 579c4b3be3..d3630ffbfc 100644 --- a/tracing-attributes/src/lib.rs +++ b/tracing-attributes/src/lib.rs @@ -878,7 +878,7 @@ enum RecordType { impl RecordType { /// Array of primitive types which should be recorded as [RecordType::Value]. - const TYPES_FOR_VALUE: [&'static str; 25] = [ + const TYPES_FOR_VALUE: &'static [&'static str] = &[ "bool", "str", "u8",