xtask: collapse if in ui-commands reexport parse

This commit is contained in:
Fabio William Conceição
2026-11-11 16:08:34 +00:00
parent 3f26409d4a
commit 6e540361af
+4 -4
View File
@@ -377,10 +377,10 @@ fn reexport_targets<'a>(src: &'a str, const_name: &str) -> Vec<Vec<&'a str>> {
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