Skip to content

Commit 3061d4a

Browse files
committed
Rust: Minor tweaks
1 parent 1f4e7d1 commit 3061d4a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

rust/ql/lib/codeql/rust/dataflow/internal/DataFlowImpl.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ private class StructFieldContent extends Content, TStructFieldContent {
624624
}
625625

626626
/**
627-
* Content stored at an element in an array.
627+
* An element in an array.
628628
*/
629629
final class ArrayElementContent extends Content, TArrayElement {
630630
ArrayElementContent() { this = TArrayElement() }

rust/ql/lib/codeql/rust/dataflow/internal/TaintTrackingImpl.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ module RustTaintTracking implements InputSig<Location, RustDataFlow> {
3939
// we also allow taint to flow out of a tainted collection. This is
4040
// needed in order to support taint-tracking configurations where the
4141
// source is a collection.
42-
exists(ContentSet cs |
42+
exists(SingletonContentSet cs |
4343
RustDataFlow::readStep(pred, cs, succ) and
44-
cs.(SingletonContentSet).getContent() instanceof ArrayElementContent
44+
cs.getContent() instanceof ArrayElementContent
4545
)
4646
)
4747
or

0 commit comments

Comments
 (0)