Skip to content

Commit

Permalink
introduce test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
wucke13 committed Jun 26, 2021
1 parent c6b9efa commit 5a80acd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
- name: Run tests
run: cargo test --verbose


clippy_check:
runs-on: ubuntu-latest
steps:
Expand Down
4 changes: 1 addition & 3 deletions src/alerts/mode_1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ impl AlertSystem for Mode1 {
let rod = -state.climb_rate.get::<foot_per_minute>();

match state.steep_approach {
true if WARNING_ENVELOPE_STEEP_APPROACH.contains(rod, altitude) => {
Some(AlertLevel::Warning)
}
true if WARNING_ENVELOPE_STEEP_APPROACH.contains(rod, altitude) => None,
true if CAUTION_ENVELOPE_STEEP_APPROACH.contains(rod, altitude) => {
Some(AlertLevel::Caution)
}
Expand Down

0 comments on commit 5a80acd

Please sign in to comment.