From 918235659f7b0d80bfa305875ab7cc988cc51761 Mon Sep 17 00:00:00 2001 From: JSDurand Date: Fri, 16 Oct 2026 18:16:36 +0800 Subject: partial commit, before trying the new guide by claude --- chain/src/item/default/mod.rs | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'chain/src/item/default/mod.rs') diff --git a/chain/src/item/default/mod.rs b/chain/src/item/default/mod.rs index eef7def..040079f 100644 --- a/chain/src/item/default/mod.rs +++ b/chain/src/item/default/mod.rs @@ -98,9 +98,10 @@ impl AsRef> for DefaultForest { } impl ParentsGraph for DefaultForest { - type Iter<'a>= as ParentsGraph>::Iter<'a> + type Iter<'a> + = as ParentsGraph>::Iter<'a> where - Self:'a; + Self: 'a; #[inline] fn parents_of(&self, node_id: usize) -> Result<::Iter<'_>, GError> { @@ -123,21 +124,25 @@ impl ParentsGraph for DefaultForest { } impl LabelGraph for DefaultForest { - type Iter<'a> = std::iter::Empty + type Iter<'a> + = std::iter::Empty where Self: 'a; - type TupleIter<'a> = std::iter::Empty<(T, usize)> + type TupleIter<'a> + = std::iter::Empty<(T, usize)> where Self: 'a, T: 'a; - type LabelIter<'a> = std::iter::Empty<(&'a T, >::Iter<'a>)> + type LabelIter<'a> + = std::iter::Empty<(&'a T, >::Iter<'a>)> where Self: 'a, T: 'a; - type EdgeLabelIter<'a> = std::iter::Empty + type EdgeLabelIter<'a> + = std::iter::Empty where Self: 'a, T: 'a; -- cgit v1.2.3-18-g5258