mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-11 22:22:25 +00:00
xtask: collapse if in ui-commands reexport parse
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user