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