clippy fix: useless use of format!

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
This commit is contained in:
Lukas Wagner 2023-08-08 10:01:50 +02:00 committed by Wolfgang Bumiller
parent 58b29dfbcf
commit 6c38a997af

View File

@ -290,13 +290,9 @@ impl<'de, 'i> de::Deserializer<'de> for SchemaDeserializer<'de, 'i> {
Some(schema::ApiStringFormat::PropertyString(schema)) => {
self.deserialize_property_string(visitor, schema)
}
_ => Err(Error::msg(format!(
"cannot deserialize map with a string schema",
))),
_ => Err(Error::msg("cannot deserialize map with a string schema")),
},
_ => Err(Error::msg(format!(
"cannot deserialize map with non-object schema",
))),
_ => Err(Error::msg("cannot deserialize map with non-object schema")),
}
}