Skip to content

Commit

Permalink
attributes: record f32 and f64 as Value (#1522)
Browse files Browse the repository at this point in the history
Companion PR with #1507.
  • Loading branch information
Folyd authored and hawkw committed Sep 4, 2021
1 parent c90e5c8 commit 9cd3c56
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tracing-attributes/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,7 @@ enum RecordType {

impl RecordType {
/// Array of primitive types which should be recorded as [RecordType::Value].
const TYPES_FOR_VALUE: [&'static str; 23] = [
const TYPES_FOR_VALUE: &'static [&'static str] = &[
"bool",
"str",
"u8",
Expand All @@ -1078,6 +1078,8 @@ impl RecordType {
"i32",
"u64",
"i64",
"f32",
"f64",
"usize",
"isize",
"NonZeroU8",
Expand Down

0 comments on commit 9cd3c56

Please sign in to comment.