diff --git a/tracing-core/src/field.rs b/tracing-core/src/field.rs index 90c4eaa85d..5c9a2d12a0 100644 --- a/tracing-core/src/field.rs +++ b/tracing-core/src/field.rs @@ -1081,6 +1081,7 @@ mod private { pub trait ValidLen<'a>: Borrow<[(&'a Field, Option<&'a (dyn Value + 'a)>)]> {} impl<'a, const N: usize> ValidLen<'a> for [(&'a Field, Option<&'a (dyn Value + 'a)>); N] {} + impl<'a> ValidLen<'a> for &[(&'a Field, Option<&'a (dyn Value + 'a)>)] {} } #[cfg(test)]