We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c9ee7f commit b4cc659Copy full SHA for b4cc659
engine/src/types.rs
@@ -61,7 +61,7 @@ impl std::fmt::Display for ExpectedType {
61
match self {
62
ExpectedType::Array => write!(f, "Array<_>"),
63
ExpectedType::Map => write!(f, "Map<_>"),
64
- ExpectedType::Type(ty) => write!(f, "{}", ty),
+ ExpectedType::Type(ty) => write!(f, "{ty}"),
65
}
66
67
@@ -118,9 +118,9 @@ impl std::fmt::Display for ExpectedTypeList {
118
_ => {
119
let mut iter = self.0.iter();
120
let first = iter.next().unwrap();
121
- write!(f, "{{{}", first)?;
+ write!(f, "{{{first}")?;
122
for expected_type in iter {
123
- write!(f, ", {}", expected_type)?;
+ write!(f, ", {expected_type}")?;
124
125
write!(f, "}}")
126
0 commit comments