mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-13 09:52:00 -04:00
testing: Small cleanup
This commit is contained in:
parent
68877c74d2
commit
69741facf5
1 changed files with 16 additions and 28 deletions
|
@ -256,22 +256,16 @@ impl<'a> InterfaceIntrospection<'a> {
|
||||||
let mut issues = 0;
|
let mut issues = 0;
|
||||||
|
|
||||||
for key in local_method_names.union(&other_method_names) {
|
for key in local_method_names.union(&other_method_names) {
|
||||||
let local_method = match local_methods.get(*key) {
|
let Some(local_method) = local_methods.get(*key) else {
|
||||||
None => {
|
error!("Method {key} missing on self");
|
||||||
error!("Method {key} missing on self");
|
issues += 1;
|
||||||
issues += 1;
|
continue;
|
||||||
continue;
|
|
||||||
}
|
|
||||||
Some(method) => method,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
let other_method = match other_methods.get(*key) {
|
let Some(other_method) = other_methods.get(*key) else {
|
||||||
None => {
|
error!("Method {key} missing on other");
|
||||||
error!("Method {key} missing on other");
|
issues += 1;
|
||||||
issues += 1;
|
continue;
|
||||||
continue;
|
|
||||||
}
|
|
||||||
Some(method) => method,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
if local_method.args().len() != other_method.args().len() {
|
if local_method.args().len() != other_method.args().len() {
|
||||||
|
@ -309,22 +303,16 @@ impl<'a> InterfaceIntrospection<'a> {
|
||||||
let mut issues = 0;
|
let mut issues = 0;
|
||||||
|
|
||||||
for key in local_property_names.union(&other_property_names) {
|
for key in local_property_names.union(&other_property_names) {
|
||||||
let local_property = match local_properties.get(*key) {
|
let Some(local_property) = local_properties.get(*key) else {
|
||||||
None => {
|
error!("Property {key} missing on self");
|
||||||
error!("Property {key} missing on self");
|
issues += 1;
|
||||||
issues += 1;
|
continue;
|
||||||
continue;
|
|
||||||
}
|
|
||||||
Some(prop) => prop,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
let other_property = match other_properties.get(*key) {
|
let Some(other_property) = other_properties.get(*key) else {
|
||||||
None => {
|
error!("Property {key} missing on other");
|
||||||
error!("Property {key} missing on other");
|
issues += 1;
|
||||||
issues += 1;
|
continue;
|
||||||
continue;
|
|
||||||
}
|
|
||||||
Some(prop) => prop,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
if local_property.ty() != other_property.ty() {
|
if local_property.ty() != other_property.ty() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue