disco: Make xml:lang a proper Option and rename it to lang.

This commit is contained in:
Emmanuel Gil Peyrot 2017-05-27 22:10:00 +01:00
commit 8e1d5e7983
3 changed files with 8 additions and 7 deletions

View file

@ -88,7 +88,7 @@ fn compute_identities(identities: &[Identity]) -> Vec<u8> {
compute_items(identities, 0x1c, |identity| {
let mut bytes = compute_item(&identity.category);
bytes.append(&mut compute_item(&identity.type_));
bytes.append(&mut compute_item(&identity.xml_lang));
bytes.append(&mut compute_item(&identity.lang.clone().unwrap_or_default()));
bytes.append(&mut compute_item(&identity.name.clone().unwrap_or_default()));
bytes.push(0x1e);
bytes