From f9f77505f2573021ada6f1ad5e650e21b15431f7 Mon Sep 17 00:00:00 2001 From: Benno Zeeman Date: Tue, 14 Jan 2025 16:11:16 +0100 Subject: [PATCH] fix: format string with value --- ant-protocol/src/storage/header.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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", - )) + ))) } } }