mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 04:01:58 +00:00
fix incorrect error message for deserialization in ValueSpecString (#1547)
This commit is contained in:
@@ -1213,7 +1213,7 @@ impl<'de> Deserialize<'de> for ValueSpecString {
|
||||
masked = map.next_value()?;
|
||||
} else if &key == "placeholder" {
|
||||
if placeholder.is_some() {
|
||||
return Err(serde::de::Error::duplicate_field("pattern"));
|
||||
return Err(serde::de::Error::duplicate_field("placeholder"));
|
||||
} else {
|
||||
placeholder = Some(map.next_value()?);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user