From ea6fb89ffbcf25c0726e30aa31211e705f901a17 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Wed, 11 Dec 2024 02:30:13 +0700 Subject: [PATCH] Fix `clippy::needless_return` lint (#83) --- build/xml_helpers.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/xml_helpers.rs b/build/xml_helpers.rs index 840b71f..d4668d6 100644 --- a/build/xml_helpers.rs +++ b/build/xml_helpers.rs @@ -27,10 +27,10 @@ pub fn codes(element: &Element) -> Vec { if code_overrides.is_empty() { vec![code(element)] } else { - return code_overrides + code_overrides .split(',') .map(|c| c.parse::().unwrap()) - .collect::>(); + .collect::>() } }