diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2022-11-08 15:28:57 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2022-11-08 15:28:57 +0100 |
commit | 35cd553550758425e890590c64386509ea4645ce (patch) | |
tree | 43c84000d7d20f9e9d94cb7a9a0e8843b31f0bf7 | |
parent | f492cac7358605dfde6df1020d72f3d9e851a1e1 (diff) |
Fix clippy: Do not clone copy type
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r-- | src/async_dag.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/async_dag.rs b/src/async_dag.rs index d9b7688..8b4c595 100644 --- a/src/async_dag.rs +++ b/src/async_dag.rs @@ -451,7 +451,7 @@ mod tests { right_id: &test::Id, ) -> Result<test::Node> { Ok(test::Node { - parents: vec![left_id.clone(), right_id.clone()], + parents: vec![*left_id, *right_id], data: 3, }) } @@ -516,7 +516,7 @@ mod tests { &branched, |left_id: &test::Id, right_id: &test::Id| { Ok(test::Node { - parents: vec![left_id.clone(), right_id.clone()], + parents: vec![*left_id, *right_id], data: 3, }) }, |