Skip to content

Commit

Permalink
Chore: Update rust-toolchain (#198)
Browse files Browse the repository at this point in the history
- Applied cargo clippy --fix
  • Loading branch information
hatoo authored Aug 21, 2023
1 parent d0544fe commit cefd8bc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion rust-toolchain

This file was deleted.

2 changes: 2 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[toolchain]
channel = "1.71.1"
4 changes: 1 addition & 3 deletions src/termdag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,7 @@ impl TermDag {
let id = self.lookup(term);
// use a stack to avoid stack overflow
let mut stack = vec![id];
while !stack.is_empty() {
let next = stack.pop().unwrap();

while let Some(next) = stack.pop() {
match self.nodes[next].clone() {
Term::App(name, children) => {
if seen.contains(&next) {
Expand Down

0 comments on commit cefd8bc

Please sign in to comment.