sdk/rust: fix clippy error

This commit is contained in:
A5 Pickle 2023-01-26 20:00:58 +00:00 committed by Justin Schuldt
parent 9f0109388a
commit 58e6afd439
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ impl<'de, const N: usize> Visitor<'de> for ArrayVisitor<N> {
type Value = [u8; N];
fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
write!(formatter, "an array of length {}", N)
write!(formatter, "an array of length {N}")
}
fn visit_seq<A>(self, mut seq: A) -> Result<Self::Value, A::Error>

View File

@ -209,7 +209,7 @@ mod tests {
type Value = [u8; N];
fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
write!(formatter, "an array of length {}", N)
write!(formatter, "an array of length {N}")
}
fn visit_seq<A>(self, mut seq: A) -> Result<Self::Value, A::Error>