Skip to content

Commit

Permalink
Fixed clippy reports
Browse files Browse the repository at this point in the history
  • Loading branch information
Sascha Grunert authored and Sascha Grunert committed Dec 28, 2016
1 parent cf76e6b commit 48fb943
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "indextree"
version = "0.1.1"
version = "1.0.0"
license = "MIT"
readme = "README.md"
keywords = ["tree", "arena", "index", "indextree", "trie"]
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ impl<'a, T> Iterator for Traverse<'a, T> {
NodeEdge::Start(node) => {
match self.arena[node].first_child {
Some(first_child) => Some(NodeEdge::Start(first_child)),
None => Some(NodeEdge::End(node.clone())),
None => Some(NodeEdge::End(node)),
}
}
NodeEdge::End(node) => {
Expand Down Expand Up @@ -481,7 +481,7 @@ impl<'a, T> Iterator for ReverseTraverse<'a, T> {
NodeEdge::End(node) => {
match self.arena[node].last_child {
Some(last_child) => Some(NodeEdge::End(last_child)),
None => Some(NodeEdge::Start(node.clone())),
None => Some(NodeEdge::Start(node)),
}
}
NodeEdge::Start(node) => {
Expand Down

0 comments on commit 48fb943

Please sign in to comment.