Skip to content

Commit ed67dae

Browse files
committed
Rust: Make ql-for-ql happy.
1 parent 20eaaa5 commit ed67dae

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

rust/ql/src/queries/summary/TaintSources.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ import codeql.rust.Concepts
1313

1414
from ThreatModelSource s, string defaultString
1515
where
16-
if s instanceof ActiveThreatModelSource then defaultString = ", DEFAULT" else defaultString = ""
17-
select s, s.getSourceType() + " (" + s.getThreatModel() + defaultString + ")"
16+
if s instanceof ActiveThreatModelSource then defaultString = " (DEFAULT)" else defaultString = ""
17+
select s, "Flow source '" + s.getSourceType() + "' of type " + s.getThreatModel() + defaultString + "."
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
| test.rs:8:10:8:30 | CallExpr | EnvironmentSource (environment) |
2-
| test.rs:9:10:9:33 | CallExpr | EnvironmentSource (environment) |
3-
| test.rs:11:16:11:36 | CallExpr | EnvironmentSource (environment) |
4-
| test.rs:12:16:12:39 | CallExpr | EnvironmentSource (environment) |
5-
| test.rs:17:25:17:40 | CallExpr | EnvironmentSource (environment) |
6-
| test.rs:22:25:22:43 | CallExpr | EnvironmentSource (environment) |
7-
| test.rs:29:29:29:44 | CallExpr | CommandLineArgs (commandargs) |
8-
| test.rs:32:16:32:31 | CallExpr | CommandLineArgs (commandargs) |
9-
| test.rs:33:16:33:34 | CallExpr | CommandLineArgs (commandargs) |
10-
| test.rs:40:16:40:31 | CallExpr | CommandLineArgs (commandargs) |
11-
| test.rs:44:16:44:34 | CallExpr | CommandLineArgs (commandargs) |
12-
| test.rs:50:15:50:37 | CallExpr | CommandLineArgs (commandargs) |
13-
| test.rs:51:15:51:37 | CallExpr | CommandLineArgs (commandargs) |
14-
| test.rs:52:16:52:35 | CallExpr | CommandLineArgs (commandargs) |
15-
| test.rs:60:26:60:70 | CallExpr | RemoteSource (remote, DEFAULT) |
16-
| test.rs:63:26:63:70 | CallExpr | RemoteSource (remote, DEFAULT) |
17-
| test.rs:66:26:66:60 | CallExpr | RemoteSource (remote, DEFAULT) |
1+
| test.rs:8:10:8:30 | CallExpr | Flow source 'EnvironmentSource' of type environment. |
2+
| test.rs:9:10:9:33 | CallExpr | Flow source 'EnvironmentSource' of type environment. |
3+
| test.rs:11:16:11:36 | CallExpr | Flow source 'EnvironmentSource' of type environment. |
4+
| test.rs:12:16:12:39 | CallExpr | Flow source 'EnvironmentSource' of type environment. |
5+
| test.rs:17:25:17:40 | CallExpr | Flow source 'EnvironmentSource' of type environment. |
6+
| test.rs:22:25:22:43 | CallExpr | Flow source 'EnvironmentSource' of type environment. |
7+
| test.rs:29:29:29:44 | CallExpr | Flow source 'CommandLineArgs' of type commandargs. |
8+
| test.rs:32:16:32:31 | CallExpr | Flow source 'CommandLineArgs' of type commandargs. |
9+
| test.rs:33:16:33:34 | CallExpr | Flow source 'CommandLineArgs' of type commandargs. |
10+
| test.rs:40:16:40:31 | CallExpr | Flow source 'CommandLineArgs' of type commandargs. |
11+
| test.rs:44:16:44:34 | CallExpr | Flow source 'CommandLineArgs' of type commandargs. |
12+
| test.rs:50:15:50:37 | CallExpr | Flow source 'CommandLineArgs' of type commandargs. |
13+
| test.rs:51:15:51:37 | CallExpr | Flow source 'CommandLineArgs' of type commandargs. |
14+
| test.rs:52:16:52:35 | CallExpr | Flow source 'CommandLineArgs' of type commandargs. |
15+
| test.rs:60:26:60:70 | CallExpr | Flow source 'RemoteSource' of type remote (DEFAULT). |
16+
| test.rs:63:26:63:70 | CallExpr | Flow source 'RemoteSource' of type remote (DEFAULT). |
17+
| test.rs:66:26:66:60 | CallExpr | Flow source 'RemoteSource' of type remote (DEFAULT). |

0 commit comments

Comments
 (0)