schema: fix deprecation warnings in tests
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
b28f0d820b
commit
2d9fbc02ab
@ -13,7 +13,7 @@ fn parse_query_string<T: Into<ParameterSchema>>(
|
||||
.into_owned()
|
||||
.collect();
|
||||
|
||||
parse_parameter_strings(¶m_list, schema.into(), test_required)
|
||||
schema.into().parse_parameter_strings(¶m_list, test_required)
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
@ -88,7 +88,7 @@ fn test_verify(
|
||||
data: &Value,
|
||||
expected_errors: &[(&str, &str)],
|
||||
) -> Result<(), Error> {
|
||||
match verify_json(data, schema) {
|
||||
match schema.verify_json(data) {
|
||||
Ok(_) => bail!("expected errors, but got Ok()"),
|
||||
Err(err) => compare_error(expected_errors, err)?,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user