schema: fix deprecation warnings in tests

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2021-12-17 08:07:02 +01:00
parent b28f0d820b
commit 2d9fbc02ab
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ fn parse_query_string<T: Into<ParameterSchema>>(
.into_owned()
.collect();
parse_parameter_strings(&param_list, schema.into(), test_required)
schema.into().parse_parameter_strings(&param_list, test_required)
}
#[test]

View File

@ -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)?,
}