Update compare_properties to handle affiliated keywords.

This commit is contained in:
Tom Alexander
2023-10-11 14:14:33 -04:00
parent 78a9b93f22
commit aa33fe42a8
3 changed files with 91 additions and 9 deletions

View File

@@ -768,19 +768,11 @@ fn compare_plain_list<'b, 's>(
&mut message,
)?;
for diff in compare_affiliated_keywords(source, emacs, rust)? {
diff.apply(&mut child_status, &mut this_status, &mut message);
}
let affiliated_keywords_names: Vec<String> = affiliated_keywords_names(rust).collect();
for diff in compare_properties!(
source,
emacs,
rust,
affiliated_keywords_names
.iter()
.map(String::as_str)
.map(EmacsField::Required),
[],
(
EmacsField::Optional(":name"),
|r| r.name,