Skip to content

Commit

Permalink
Rust: Use final extensions.
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffw0 committed Nov 22, 2024
1 parent 292b29b commit 20eaaa5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rust/ql/lib/codeql/rust/Concepts.qll
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class ActiveThreatModelSource extends ThreatModelSource {
/**
* A data flow source corresponding to the program's command line arguments or path.
*/
class CommandLineArgsSource extends ThreatModelSource instanceof CommandLineArgsSource::Range { }
final class CommandLineArgsSource = CommandLineArgsSource::Range;

module CommandLineArgsSource {

Check warning on line 55 in rust/ql/lib/codeql/rust/Concepts.qll

View workflow job for this annotation

GitHub Actions / qldoc

Missing QLdoc for module Concepts::CommandLineArgsSource
abstract class Range extends ThreatModelSource::Range {

Check warning on line 56 in rust/ql/lib/codeql/rust/Concepts.qll

View workflow job for this annotation

GitHub Actions / qldoc

Missing QLdoc for class Concepts::CommandLineArgsSource::Range
Expand All @@ -63,7 +63,7 @@ module CommandLineArgsSource {
/**
* A data flow source corresponding to the program's environment.
*/
class EnvironmentSource extends ThreatModelSource instanceof EnvironmentSource::Range { }
final class EnvironmentSource = EnvironmentSource::Range;

module EnvironmentSource {

Check warning on line 68 in rust/ql/lib/codeql/rust/Concepts.qll

View workflow job for this annotation

GitHub Actions / qldoc

Missing QLdoc for module Concepts::EnvironmentSource
abstract class Range extends ThreatModelSource::Range {

Check warning on line 69 in rust/ql/lib/codeql/rust/Concepts.qll

View workflow job for this annotation

GitHub Actions / qldoc

Missing QLdoc for class Concepts::EnvironmentSource::Range
Expand All @@ -76,7 +76,7 @@ module EnvironmentSource {
/**
* A data flow source for remote (network) data.
*/
class RemoteSource extends ThreatModelSource instanceof RemoteSource::Range { }
final class RemoteSource = RemoteSource::Range;

module RemoteSource {

Check warning on line 81 in rust/ql/lib/codeql/rust/Concepts.qll

View workflow job for this annotation

GitHub Actions / qldoc

Missing QLdoc for module Concepts::RemoteSource
abstract class Range extends ThreatModelSource::Range {

Check warning on line 82 in rust/ql/lib/codeql/rust/Concepts.qll

View workflow job for this annotation

GitHub Actions / qldoc

Missing QLdoc for class Concepts::RemoteSource::Range
Expand Down

0 comments on commit 20eaaa5

Please sign in to comment.