[pbs-devel] [PATCH proxmox 12/15] clippy fix: useless use of `format!`
Lukas Wagner
l.wagner at proxmox.com
Tue Aug 8 10:01:50 CEST 2023
Signed-off-by: Lukas Wagner <l.wagner at proxmox.com>
---
proxmox-schema/src/de/mod.rs | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/proxmox-schema/src/de/mod.rs b/proxmox-schema/src/de/mod.rs
index 8cb3761..cccca06 100644
--- a/proxmox-schema/src/de/mod.rs
+++ b/proxmox-schema/src/de/mod.rs
@@ -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")),
}
}
--
2.39.2
More information about the pbs-devel
mailing list