Skip to content

Commit 1fe7e2e

Browse files
committed
Rust: Change concat to strictconcat
1 parent 1e30585 commit 1fe7e2e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rust/ql/lib/codeql/rust/elements/internal/StructFieldImpl.qll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ module Impl {
3030
/** Holds if this record field is named `name` and belongs to the struct `s`. */
3131
predicate isStructField(Struct s, string name) { this = s.getStructField(name) }
3232

33-
override string toStringImpl() { result = concat(int i | | this.toStringPart(i) order by i) }
33+
override string toStringImpl() {
34+
result = strictconcat(int i | | this.toStringPart(i) order by i)
35+
}
3436

3537
private string toStringPart(int index) {
3638
index = 0 and result = this.getVisibility().toAbbreviatedString() + " "

0 commit comments

Comments
 (0)