Skip to content

Commit

Permalink
Update topological_index.rs
Browse files Browse the repository at this point in the history
Update topological_index.rs

Update topological_index.rs

Update utils.rs

Create codeql.yml

Create stackhawk.yml

Create SECURITY.md

updates for cargo

Update topological_index.rs

Update topological_index.rs

linter updates

changes for passing linter.

Update codeql.yml

delete codeql

remove file

Update topological_index.rs

Revert "Update utils.rs"

This reverts commit ce4d2a7.

security file
  • Loading branch information
JonLittleIT committed Feb 13, 2024
1 parent 540a354 commit a918b94
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ analyzer-target
*.code-workspace
/setup
testing/integration/perflogs*
/.history/
4 changes: 2 additions & 2 deletions mining/src/model/topological_index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ where
sorted.reverse();
Ok(sorted)
}

fn check_topological_order(&'a self, sorted: &Vec<TKey>) -> TopologicalIndexResult<()> {
fn check_topological_order(&'a self, sorted: &[TKey]) -> TopologicalIndexResult<()> {
let nodes = self.topology_nodes().collect::<HashSet<_>>();
if sorted.len() != nodes.len() {
return Err(TopologicalIndexError::IndexHasWrongKeySet);
Expand Down
21 changes: 21 additions & 0 deletions security.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Security Policy

## Supported Versions

Use this section to tell people about which versions of your project are
currently being supported with security updates.

| Version | Supported |
| ------- | ------------------ |
| 5.1.x | :white_check_mark: |
| 5.0.x | :x: |
| 4.0.x | :white_check_mark: |
| < 4.0 | :x: |

## Reporting a Vulnerability

Use this section to tell people how to report a vulnerability.

Tell them where to go, how often they can expect to get an update on a
reported vulnerability, what to expect if the vulnerability is accepted or
declined, etc.

0 comments on commit a918b94

Please sign in to comment.