diff --git a/proxmox-schema/src/de/mod.rs b/proxmox-schema/src/de/mod.rs index 8cb37619..cccca06f 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")), } }