sdk/rust: fix clippy error
This commit is contained in:
parent
9f0109388a
commit
58e6afd439
|
@ -23,7 +23,7 @@ impl<'de, const N: usize> Visitor<'de> for ArrayVisitor<N> {
|
||||||
type Value = [u8; N];
|
type Value = [u8; N];
|
||||||
|
|
||||||
fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
|
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>
|
fn visit_seq<A>(self, mut seq: A) -> Result<Self::Value, A::Error>
|
||||||
|
|
|
@ -209,7 +209,7 @@ mod tests {
|
||||||
type Value = [u8; N];
|
type Value = [u8; N];
|
||||||
|
|
||||||
fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
|
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>
|
fn visit_seq<A>(self, mut seq: A) -> Result<Self::Value, A::Error>
|
||||||
|
|
Loading…
Reference in New Issue