From 6e540361af45a633b4a49cb78d277f10e5148cfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabio=20William=20Concei=C3=A7=C3=A3o?= Date: Wed, 11 Nov 2026 16:08:34 +0000 Subject: [PATCH] xtask: collapse if in ui-commands reexport parse --- xtask/src/ui_commands.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xtask/src/ui_commands.rs b/xtask/src/ui_commands.rs index bb8d8dfdd..4bf12a272 100644 --- a/xtask/src/ui_commands.rs +++ b/xtask/src/ui_commands.rs @@ -377,10 +377,10 @@ fn reexport_targets<'a>(src: &'a str, const_name: &str) -> Vec> { if hit { out.push(path.split("::").collect()); } - } else if let Some((path, name)) = rest.rsplit_once("::") { - if name.trim() == const_name { - out.push(path.split("::").collect()); - } + } else if let Some((path, name)) = rest.rsplit_once("::") + && name.trim() == const_name + { + out.push(path.split("::").collect()); } } out