From a4f2829db28690e857c0c6ab10ac8f1cf42a29d4 Mon Sep 17 00:00:00 2001 From: daimond113 Date: Fri, 14 Feb 2025 23:09:44 +0100 Subject: [PATCH] refactor: remove unused trait --- src/graph.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/graph.rs b/src/graph.rs index 6ea70d8..e49a1e7 100644 --- a/src/graph.rs +++ b/src/graph.rs @@ -96,15 +96,3 @@ pub struct DependencyGraphNodeWithTarget { /// A graph of `DownloadedDependencyGraphNode`s pub type DependencyGraphWithTarget = Graph; - -/// A trait for converting a graph to a different type of graph -pub trait ConvertableGraph { - /// Converts the graph to a different type of graph - fn convert(self) -> Graph; -} - -impl ConvertableGraph for DependencyGraphWithTarget { - fn convert(self) -> Graph { - self.into_iter().map(|(id, node)| (id, node.node)).collect() - } -}