Skip to content

Commit

Permalink
Fix serde feature clippy errors and warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitshifter committed Dec 17, 2024
1 parent 3c2c77f commit afe8c1f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/features/impl_serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ mod bool {
type Value = BVec3A;

fn expecting(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
formatter.write_str(&concat!("a sequence of 3 ", stringify!($t), "values"))
formatter.write_str(concat!("a sequence of 3 ", stringify!($t), "values"))
}

fn visit_seq<V>(self, mut seq: V) -> Result<BVec3A, V::Error>
Expand Down Expand Up @@ -977,7 +977,7 @@ mod bool {
type Value = BVec4A;

fn expecting(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
formatter.write_str(&concat!("a sequence of 4 ", stringify!($t), "values"))
formatter.write_str(concat!("a sequence of 4 ", stringify!($t), "values"))
}

fn visit_seq<V>(self, mut seq: V) -> Result<BVec4A, V::Error>
Expand Down Expand Up @@ -1295,7 +1295,7 @@ mod euler {
}
struct FieldVisitor;

impl<'de> serde::de::Visitor<'de> for FieldVisitor {
impl serde::de::Visitor<'_> for FieldVisitor {
type Value = Field;
fn expecting(&self, formatter: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
core::fmt::Formatter::write_str(formatter, "a variant identifier")
Expand Down

0 comments on commit afe8c1f

Please sign in to comment.