summaryrefslogtreecommitdiff
path: root/server/common
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2025-06-23 09:07:25 +0200
committerJoel Klinghed <the_jk@spawned.biz>2025-06-23 09:07:25 +0200
commit83c24934dc0ad18b1ed1696af3949b62146a4f22 (patch)
tree074c861c9977f28627fe368ab63ee6e3cd7d66c1 /server/common
parentc1717bf8665ec62e293a2196e0dbaa5904a520f0 (diff)
clippy: Use if instead of empty match
Diffstat (limited to 'server/common')
-rw-r--r--server/common/src/grit.rs7
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;