diff --git a/src/diff/graph.rs b/src/diff/graph.rs index 7c99159bd..1dbbf2b51 100644 --- a/src/diff/graph.rs +++ b/src/diff/graph.rs @@ -404,8 +404,7 @@ fn allocate_if_new<'s, 'b>( // // We still use a vec to enable experiments with the value // of how many possible parenthesis nestings to explore. - let mut existing: SmallVec<[&'b Vertex<'s, 'b>; 2]> = smallvec![&*allocated]; - existing.push(allocated); + let existing: SmallVec<[&'b Vertex<'s, 'b>; 2]> = smallvec![&*allocated]; vacant.insert(allocated, existing); allocated