mirror of
https://git.proxmox.com/git/proxmox
synced 2025-05-30 00:28:13 +00:00
clippy fix: useless use of format!
Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
This commit is contained in:
parent
58b29dfbcf
commit
6c38a997af
@ -290,13 +290,9 @@ impl<'de, 'i> de::Deserializer<'de> for SchemaDeserializer<'de, 'i> {
|
|||||||
Some(schema::ApiStringFormat::PropertyString(schema)) => {
|
Some(schema::ApiStringFormat::PropertyString(schema)) => {
|
||||||
self.deserialize_property_string(visitor, schema)
|
self.deserialize_property_string(visitor, schema)
|
||||||
}
|
}
|
||||||
_ => Err(Error::msg(format!(
|
_ => Err(Error::msg("cannot deserialize map with a string schema")),
|
||||||
"cannot deserialize map with a string schema",
|
|
||||||
))),
|
|
||||||
},
|
},
|
||||||
_ => Err(Error::msg(format!(
|
_ => Err(Error::msg("cannot deserialize map with non-object schema")),
|
||||||
"cannot deserialize map with non-object schema",
|
|
||||||
))),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user