Skip to content

Commit b4cc659

Browse files
committed
Fix new clippy lints
1 parent 5c9ee7f commit b4cc659

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

engine/src/types.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ impl std::fmt::Display for ExpectedType {
6161
match self {
6262
ExpectedType::Array => write!(f, "Array<_>"),
6363
ExpectedType::Map => write!(f, "Map<_>"),
64-
ExpectedType::Type(ty) => write!(f, "{}", ty),
64+
ExpectedType::Type(ty) => write!(f, "{ty}"),
6565
}
6666
}
6767
}
@@ -118,9 +118,9 @@ impl std::fmt::Display for ExpectedTypeList {
118118
_ => {
119119
let mut iter = self.0.iter();
120120
let first = iter.next().unwrap();
121-
write!(f, "{{{}", first)?;
121+
write!(f, "{{{first}")?;
122122
for expected_type in iter {
123-
write!(f, ", {}", expected_type)?;
123+
write!(f, ", {expected_type}")?;
124124
}
125125
write!(f, "}}")
126126
}

0 commit comments

Comments
 (0)