Skip to content

Commit

Permalink
remove clone trait bound on Dag
Browse files Browse the repository at this point in the history
  • Loading branch information
intarga committed Oct 19, 2023
1 parent 1e840a1 commit 907f542
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ pub(crate) type NodeId = usize;
/// // 1
/// ```
#[derive(Debug, Clone)]
pub struct Dag<Elem: Ord + Hash + Clone> {
pub struct Dag<Elem: Ord + Hash> {
/// A vector of all nodes in the graph
pub(crate) nodes: Vec<Node<Elem>>,
/// A set of IDs of the nodes that have no parents
Expand All @@ -84,7 +84,7 @@ pub struct Dag<Elem: Ord + Hash + Clone> {
pub(crate) index_lookup: HashMap<Elem, NodeId>,
}

impl<Elem: Ord + Hash + Clone> Node<Elem> {
impl<Elem: Ord + Hash> Node<Elem> {
fn new(elem: Elem) -> Self {
Node {
elem,
Expand Down

0 comments on commit 907f542

Please sign in to comment.