We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50552da commit c6164b3Copy full SHA for c6164b3
1 file changed
rust/ql/lib/codeql/rust/internal/PathResolution.qll
@@ -2033,10 +2033,7 @@ private ItemNode resolveUseTreeListItemQualifier(
2033
2034
private UseTree getAUseUseTree(Use use) {
2035
exists(UseTree root | root = use.getUseTree() |
2036
- result = root
2037
- or
2038
- not root.hasPath() and
2039
- result = getAUseTreeUseTree(root)
+ if root.hasPath() then result = root else result = getAUseTreeUseTree(root)
2040
)
2041
}
2042
0 commit comments