diff options
Diffstat (limited to 'server')
| -rw-r--r-- | server/common/src/grit.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/server/common/src/grit.rs b/server/common/src/grit.rs index 4a71ade..01d379c 100644 --- a/server/common/src/grit.rs +++ b/server/common/src/grit.rs @@ -1515,12 +1515,11 @@ fn parse_xliff_element<R: Read>( name, attributes, namespace: _, - } => match name.local_name.as_str() { - "file" => { + } => { + if name.local_name == "file" { file.push_back(parse_translation_file_element(&attributes, reader)?); } - _ => (), - }, + } XmlEvent::EndElement { name } => { assert!(name.local_name == "xliff"); break; |
