heh
Diffstat (limited to 'src/util.rs')
-rw-r--r--src/util.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.rs b/src/util.rs
index 828b423..482b9ec 100644
--- a/src/util.rs
+++ b/src/util.rs
@@ -429,13 +429,13 @@ pub fn iterg<N: Debug, I: Iterator<Item = N>>(
if end(&start) {
finally(start);
} else {
- graph(start).for_each(|x| iterg(x, graph, end, finally));
+ graph(start).for_each(|x: N| iterg(x, graph, end, finally));
};
}
pub fn show<N: Debug + Eq + Hash + Copy + Ord, I: Iterator<Item = (N, u16)>, D: Display>(
- graph: impl Fn(N) -> I,
start: N,
+ graph: impl Fn(N) -> I,
end: impl Fn(N) -> bool,
name: impl Fn(N) -> D,
) {