diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 680d261af63..f0a3c064e1c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -205,7 +205,7 @@ jobs: - uses: actions-rs/cargo@v1 with: command: install - args: cargo-nextest + args: cargo-nextest --locked - uses: actions-rs/cargo@v1 with: command: nextest diff --git a/massa-execution-worker/src/speculative_executed_denunciations.rs b/massa-execution-worker/src/speculative_executed_denunciations.rs index 8c7466bc844..1c8f9bb2c13 100644 --- a/massa-execution-worker/src/speculative_executed_denunciations.rs +++ b/massa-execution-worker/src/speculative_executed_denunciations.rs @@ -73,10 +73,8 @@ impl SpeculativeExecutedDenunciations { HistorySearchResult::Present(_) => { return true; } - HistorySearchResult::Absent => { - return false; - } HistorySearchResult::NoInfo => {} + HistorySearchResult::Absent => unreachable!(), // fetch_executed_denunciation does not return Absent } // check in the final state diff --git a/massa-execution-worker/src/speculative_executed_ops.rs b/massa-execution-worker/src/speculative_executed_ops.rs index 638d49bf247..f3a44386e69 100644 --- a/massa-execution-worker/src/speculative_executed_ops.rs +++ b/massa-execution-worker/src/speculative_executed_ops.rs @@ -67,10 +67,8 @@ impl SpeculativeExecutedOps { HistorySearchResult::Present(_) => { return true; } - HistorySearchResult::Absent => { - return false; - } HistorySearchResult::NoInfo => {} + HistorySearchResult::Absent => unreachable!(), // fetch_executed_op does not return Absent } // check in the final state