From 459e9174ad79ee4620e9e0fd24acf28f46a214a0 Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Fri, 9 Jun 2023 10:36:45 +0900 Subject: [PATCH] dag_walk: remove unneeded trait bound on node type --- lib/src/dag_walk.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/src/dag_walk.rs b/lib/src/dag_walk.rs index ee69c144d..b82b66ee5 100644 --- a/lib/src/dag_walk.rs +++ b/lib/src/dag_walk.rs @@ -49,7 +49,6 @@ pub fn topo_order_reverse( mut neighbors_fn: impl FnMut(&T) -> NI, ) -> Vec where - T: Hash + Eq + Clone, ID: Hash + Eq + Clone, II: IntoIterator, NI: IntoIterator, @@ -153,7 +152,6 @@ pub fn closest_common_node( mut neighbors_fn: impl FnMut(&T) -> NI, ) -> Option where - T: Hash + Eq + Clone, ID: Hash + Eq, II1: IntoIterator, II2: IntoIterator,