diff --git a/ant-protocol/src/storage/header.rs b/ant-protocol/src/storage/header.rs index 4ec619b965..4fdacead60 100644 --- a/ant-protocol/src/storage/header.rs +++ b/ant-protocol/src/storage/header.rs @@ -107,9 +107,9 @@ impl<'de> Deserialize<'de> for RecordKind { Ok(Self::DataWithPayment(data_type)) } } else { - Err(serde::de::Error::custom( + Err(serde::de::Error::custom(format!( "Unexpected index {num} for RecordKind variant", - )) + ))) } } }