Skip to content

Commit 20eaaa5

Browse files
committed
Rust: Use final extensions.
1 parent 292b29b commit 20eaaa5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rust/ql/lib/codeql/rust/Concepts.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class ActiveThreatModelSource extends ThreatModelSource {
5050
/**
5151
* A data flow source corresponding to the program's command line arguments or path.
5252
*/
53-
class CommandLineArgsSource extends ThreatModelSource instanceof CommandLineArgsSource::Range { }
53+
final class CommandLineArgsSource = CommandLineArgsSource::Range;
5454

5555
module CommandLineArgsSource {
5656
abstract class Range extends ThreatModelSource::Range {
@@ -63,7 +63,7 @@ module CommandLineArgsSource {
6363
/**
6464
* A data flow source corresponding to the program's environment.
6565
*/
66-
class EnvironmentSource extends ThreatModelSource instanceof EnvironmentSource::Range { }
66+
final class EnvironmentSource = EnvironmentSource::Range;
6767

6868
module EnvironmentSource {
6969
abstract class Range extends ThreatModelSource::Range {
@@ -76,7 +76,7 @@ module EnvironmentSource {
7676
/**
7777
* A data flow source for remote (network) data.
7878
*/
79-
class RemoteSource extends ThreatModelSource instanceof RemoteSource::Range { }
79+
final class RemoteSource = RemoteSource::Range;
8080

8181
module RemoteSource {
8282
abstract class Range extends ThreatModelSource::Range {

0 commit comments

Comments
 (0)