Skip to content

Commit

Permalink
Merge pull request #2629 from b-zee/fix-protocol-header-format
Browse files Browse the repository at this point in the history
fix: format string with value
  • Loading branch information
b-zee authored Jan 14, 2025
2 parents 225a5ed + f9f7750 commit eec5cb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ant-protocol/src/storage/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
))
)))
}
}
}
Expand Down

0 comments on commit eec5cb7

Please sign in to comment.