From adda2bf9aeba1f037878100cc78a3f9357d9db0f Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 22 Oct 2026 18:40:19 +0200 Subject: [PATCH] same_lineage: name PipelineDocument locally (528a7f7 does not build) Co-Authored-By: Claude Sonnet 5.5 --- crates/huginn-mind/src/admission.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/huginn-mind/src/admission.rs b/crates/huginn-mind/src/admission.rs index 3395f43..4ac638b 100644 --- a/crates/huginn-mind/src/admission.rs +++ b/crates/huginn-mind/src/admission.rs @@ -818,7 +818,8 @@ fn resolution_rule(docs: &Docs, resolution: &PipelineResolution) -> Result<(), M /// The one supersession lineage rule (ruling `supersession-lineage`). A target is /// superseded only by a target of its campaign, a cut_spec only by a cut_spec of its /// campaign and cut, and a ruling by any ruling: operator directions cut across campaigns. -fn same_lineage(subject: &D, supersessor: &D) -> bool { +fn same_lineage(subject: &PipelineDocument, supersessor: &PipelineDocument) -> bool { + use PipelineDocument as D; match (subject, supersessor) { (D::Target(old), D::Target(new)) => old.campaign == new.campaign, (D::CutSpec(old), D::CutSpec(new)) => old.campaign == new.campaign && old.cut == new.cut,