From e45e5939e94e67b08cf90873dec10ca7068e7a08 Mon Sep 17 00:00:00 2001 From: Lee Smet Date: Fri, 22 Aug 2025 11:02:45 +0200 Subject: [PATCH] Improve doc comment Signed-off-by: Lee Smet --- src/dag.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/dag.rs b/src/dag.rs index 62cb2b7..753a206 100644 --- a/src/dag.rs +++ b/src/dag.rs @@ -236,6 +236,7 @@ impl FlowDag { /// - it exists in the DAG /// - it is not already started or completed /// - it has no dependencies, or all dependencies are completed + /// /// If any job has failed, the entire flow is considered failed and an error is returned. pub fn ready_jobs(&self) -> DagResult> { if let Some(failed_job) = self.failed_job { @@ -333,7 +334,9 @@ impl FlowDag { } match self.failed_job { Some(existing) if existing == job => Ok(()), - Some(existing) => Err(DagError::FlowFailed { failed_job: existing }), + Some(existing) => Err(DagError::FlowFailed { + failed_job: existing, + }), None => { self.failed_job = Some(job); Ok(())