Skip to content

Commit

Permalink
style: merge match arms with identical contents
Browse files Browse the repository at this point in the history
  • Loading branch information
ada4a committed Aug 13, 2024
1 parent 45bdfbd commit fab192e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/iter/traverser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,9 @@ impl<'g, K, V> Iterator for NodeIter<'g, K, V> {
BinEntry::TreeNode(ref tree_node) => {
e = Some(&tree_node.node);
}
BinEntry::Moved => unreachable!("Nodes can only point to Nodes or TreeNodes"),
BinEntry::Tree(_) => unreachable!("Nodes can only point to Nodes or TreeNodes"),
BinEntry::Moved | BinEntry::Tree(_) => {
unreachable!("Nodes can only point to Nodes or TreeNodes")
}
}
}
}
Expand Down

0 comments on commit fab192e

Please sign in to comment.