From 6c38a997afa590f5aa5b65c7af797c2cde8c144a Mon Sep 17 00:00:00 2001 From: Lukas Wagner Date: Tue, 8 Aug 2023 10:01:50 +0200 Subject: [PATCH] clippy fix: useless use of `format!` Signed-off-by: Lukas Wagner --- 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 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")), } }