From 83c24934dc0ad18b1ed1696af3949b62146a4f22 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Mon, 23 Jun 2025 09:07:25 +0200 Subject: clippy: Use if instead of empty match --- server/common/src/grit.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'server/common/src/grit.rs') 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( 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; -- cgit v1.2.3-70-g09d2