We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66ab3a8 commit 766a338Copy full SHA for 766a338
rust/ql/lib/codeql/rust/elements/internal/CrateImpl.qll
@@ -13,7 +13,19 @@ private import codeql.rust.elements.internal.generated.Crate
13
module Impl {
14
class Crate extends Generated::Crate {
15
override string toString() {
16
- result = "Crate(" + this.getName() + "@" + concat(this.getVersion()) + ")"
+ result = strictconcat(int i | | this.toStringPart(i), " " order by i)
17
+ }
18
+
19
+ private string toStringPart(int i) {
20
+ i = 0 and result = "Crate("
21
+ or
22
+ i = 1 and result = this.getName()
23
24
+ i = 2 and result = "@"
25
26
+ i = 3 and result = this.getVersion()
27
28
+ i = 4 and result = ")"
29
}
30
31
0 commit comments