diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2020-10-26 21:02:48 -0400 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2020-10-30 10:13:39 -0400 |
| commit | 57c6ed0c07aaea9c89a192e54b3274464ebe6fbf (patch) | |
| tree | 98a2c0310690cf0c09851cb5a12a99264bbbf522 /compiler/rustc_data_structures/src/graph/scc/mod.rs | |
| parent | bfecb18771aa0249efe05dd7c35fa232f180bb70 (diff) | |
| download | rust-57c6ed0c07aaea9c89a192e54b3274464ebe6fbf.tar.gz rust-57c6ed0c07aaea9c89a192e54b3274464ebe6fbf.zip | |
Fix even more clippy warnings
Diffstat (limited to 'compiler/rustc_data_structures/src/graph/scc/mod.rs')
| -rw-r--r-- | compiler/rustc_data_structures/src/graph/scc/mod.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/rustc_data_structures/src/graph/scc/mod.rs b/compiler/rustc_data_structures/src/graph/scc/mod.rs index 2db8e466e11..486a9ba77b7 100644 --- a/compiler/rustc_data_structures/src/graph/scc/mod.rs +++ b/compiler/rustc_data_structures/src/graph/scc/mod.rs @@ -307,10 +307,7 @@ where fn walk_unvisited_node(&mut self, depth: usize, node: G::Node) -> WalkReturn<S> { debug!("walk_unvisited_node(depth = {:?}, node = {:?})", depth, node); - debug_assert!(match self.node_states[node] { - NodeState::NotVisited => true, - _ => false, - }); + debug_assert!(matches!(self.node_states[node], NodeState::NotVisited)); // Push `node` onto the stack. self.node_states[node] = NodeState::BeingVisited { depth }; |
