From 0dd409d9680237b0a905acbc0df700ea0bba041a Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Fri, 29 Nov 2024 23:03:45 +0700 Subject: [PATCH] Fix `clippy::needless_return` lint --- 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::>() } }