Skip to content

Commit

Permalink
chore: fix clippy after rust 1.85 update
Browse files Browse the repository at this point in the history
  • Loading branch information
milenkovicm committed Feb 21, 2025
1 parent 488893b commit 3f3124f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ballista/scheduler/src/state/executor_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,7 @@ impl ExecutorManager {

pub(crate) fn is_dead_executor(&self, executor_id: &str) -> bool {
self.cluster_state
.get_executor_heartbeat(executor_id)
.map_or(true, |heartbeat| {
.get_executor_heartbeat(executor_id).is_none_or(|heartbeat| {
matches!(
heartbeat.status,
Some(ballista_core::serde::generated::ballista::ExecutorStatus {
Expand Down

0 comments on commit 3f3124f

Please sign in to comment.