aboutsummaryrefslogtreecommitdiff
path: root/chain/src/item/default/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'chain/src/item/default/mod.rs')
-rw-r--r--chain/src/item/default/mod.rs17
1 files changed, 11 insertions, 6 deletions
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<T: GraphLabel> AsRef<DefaultForest<T>> for DefaultForest<T> {
}
impl<T: GraphLabel> ParentsGraph for DefaultForest<T> {
- type Iter<'a>= <PLGraph<T> as ParentsGraph>::Iter<'a>
+ type Iter<'a>
+ = <PLGraph<T> as ParentsGraph>::Iter<'a>
where
- Self:'a;
+ Self: 'a;
#[inline]
fn parents_of(&self, node_id: usize) -> Result<<Self as ParentsGraph>::Iter<'_>, GError> {
@@ -123,21 +124,25 @@ impl<T: GraphLabel> ParentsGraph for DefaultForest<T> {
}
impl<T: GraphLabel> LabelGraph<T> for DefaultForest<T> {
- type Iter<'a> = std::iter::Empty<usize>
+ type Iter<'a>
+ = std::iter::Empty<usize>
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, <Self as LabelGraph<T>>::Iter<'a>)>
+ type LabelIter<'a>
+ = std::iter::Empty<(&'a T, <Self as LabelGraph<T>>::Iter<'a>)>
where
Self: 'a,
T: 'a;
- type EdgeLabelIter<'a> = std::iter::Empty<T>
+ type EdgeLabelIter<'a>
+ = std::iter::Empty<T>
where
Self: 'a,
T: 'a;