We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72596aa commit 75b5005Copy full SHA for 75b5005
modules/analysis/src/model/roots.rs
@@ -67,11 +67,11 @@ impl<'a> RootTraces for &'a Vec<Node> {
67
fn root_traces(self) -> Self::Result {
68
fn roots_into<'a>(
69
nodes: impl IntoIterator<Item = &'a Node>,
70
- parents: &Vec<(&'a BaseSummary, Relationship)>,
+ parents: &[(&'a BaseSummary, Relationship)],
71
result: &mut Vec<Vec<(&'a BaseSummary, Relationship)>>,
72
) {
73
for node in nodes.into_iter() {
74
- let mut next = parents.clone();
+ let mut next = parents.to_owned();
75
76
// if we don't have a relationship to the parent node, we are the initial node
77
// and will be skipped
0 commit comments