From 3a97c1fdd968b88f0110be064bfa63322bc57c3c Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Wed, 15 Apr 2026 10:15:33 -0400 Subject: [PATCH] server --- lib/crates/fabro-model/src/provider.rs | 2 +- lib/crates/fabro-server/src/server.rs | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/crates/fabro-model/src/provider.rs b/lib/crates/fabro-model/src/provider.rs index 645ccdfa2..3af18547b 100644 --- a/lib/crates/fabro-model/src/provider.rs +++ b/lib/crates/fabro-model/src/provider.rs @@ -73,7 +73,7 @@ impl Provider { /// Pick the best default provider based on an explicit configured list. #[must_use] pub fn default_for_configured(configured: &[Self]) -> Self { - Self::default_with(|provider| configured.contains(&provider)) + Self::default_with(|p| configured.contains(&p)) } /// Testable core of [`default_from_env`]: walks the precedence list and diff --git a/lib/crates/fabro-server/src/server.rs b/lib/crates/fabro-server/src/server.rs index c8e2f5175..d34601e13 100644 --- a/lib/crates/fabro-server/src/server.rs +++ b/lib/crates/fabro-server/src/server.rs @@ -2148,10 +2148,7 @@ async fn list_run_stages( // The checkpoint's current_node is the last *completed* stage; next_node_id // is the stage that is currently executing. if let Some(next_id) = &checkpoint.next_node_id { - if run_is_active - && next_id != "exit" - && !checkpoint.completed_nodes.contains(next_id) - { + if run_is_active && next_id != "exit" && !checkpoint.completed_nodes.contains(next_id) { stages.push(RunStage { id: next_id.clone(), name: next_id.clone(), @@ -6517,7 +6514,8 @@ async fn get_graph( }; let live_dot_source = { let runs = state.runs.lock().expect("runs lock poisoned"); - runs.get(&id).map(|managed_run| managed_run.dot_source.clone()) + runs.get(&id) + .map(|managed_run| managed_run.dot_source.clone()) }; if let Some(dot) = &live_dot_source { if !dot.is_empty() {