Skip to content

Commit f2f577f

Browse files
committed
Rust: Fix toString().
1 parent d8b58f2 commit f2f577f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust/ql/test/library-tests/dataflow/sources/InlineFlow.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import codeql.rust.Concepts
44
import utils.InlineFlowTest
55

66
/**
7-
* Configuration for flow from any threat model source to an argument of a function called `sink`.
7+
* Configuration for flow from any threat model source to an argument of the function `sink`.
88
*/
99
module MyFlowConfig implements DataFlow::ConfigSig {
1010
predicate isSource(DataFlow::Node source) { source instanceof ThreatModelSource }
1111

1212
predicate isSink(DataFlow::Node sink) {
13-
any(CallExpr call | call.getExpr().(PathExpr).getPath().toString() = "sink")
13+
any(CallExpr call | call.getExpr().(PathExpr).getPath().getResolvedPath() = "crate::test::sink")
1414
.getArgList()
1515
.getAnArg() = sink.asExpr().getExpr()
1616
}

0 commit comments

Comments
 (0)