diff options
Diffstat (limited to 'src/librustc_data_structures/graph/tests.rs')
| -rw-r--r-- | src/librustc_data_structures/graph/tests.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/librustc_data_structures/graph/tests.rs b/src/librustc_data_structures/graph/tests.rs index bc142144e93..7f4ef906b36 100644 --- a/src/librustc_data_structures/graph/tests.rs +++ b/src/librustc_data_structures/graph/tests.rs @@ -1,7 +1,7 @@ use crate::fx::FxHashMap; use std::cmp::max; -use std::slice; use std::iter; +use std::slice; use super::*; @@ -51,9 +51,7 @@ impl WithNumNodes for TestGraph { } impl WithPredecessors for TestGraph { - fn predecessors(&self, - node: usize) - -> <Self as GraphPredecessors<'_>>::Iter { + fn predecessors(&self, node: usize) -> <Self as GraphPredecessors<'_>>::Iter { self.predecessors[&node].iter().cloned() } } |
