Skip to content

Commit 9cd3c56

Browse files
Folydhawkw
authored andcommitted
attributes: record f32 and f64 as Value (#1522)
Companion PR with #1507.
1 parent c90e5c8 commit 9cd3c56

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tracing-attributes/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@ enum RecordType {
10671067

10681068
impl RecordType {
10691069
/// Array of primitive types which should be recorded as [RecordType::Value].
1070-
const TYPES_FOR_VALUE: [&'static str; 23] = [
1070+
const TYPES_FOR_VALUE: &'static [&'static str] = &[
10711071
"bool",
10721072
"str",
10731073
"u8",
@@ -1078,6 +1078,8 @@ impl RecordType {
10781078
"i32",
10791079
"u64",
10801080
"i64",
1081+
"f32",
1082+
"f64",
10811083
"usize",
10821084
"isize",
10831085
"NonZeroU8",

0 commit comments

Comments
 (0)