about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src/graph/scc/mod.rs
diff options
context:
space:
mode:
authorr0cky <mu001999@outlook.com>2024-05-30 09:51:27 +0800
committerr0cky <mu001999@outlook.com>2024-05-30 09:51:27 +0800
commitdabd05bbab9df465a580858c3e03dc1797b12deb (patch)
treeef0660c4849e779a0454cedfacb6f90f26c26fc7 /compiler/rustc_data_structures/src/graph/scc/mod.rs
parentf2e1a3a80ae54734e1a3d306f31c2caebb05de9b (diff)
downloadrust-dabd05bbab9df465a580858c3e03dc1797b12deb.tar.gz
rust-dabd05bbab9df465a580858c3e03dc1797b12deb.zip
Apply x clippy --fix and x fmt
Diffstat (limited to 'compiler/rustc_data_structures/src/graph/scc/mod.rs')
-rw-r--r--compiler/rustc_data_structures/src/graph/scc/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_data_structures/src/graph/scc/mod.rs b/compiler/rustc_data_structures/src/graph/scc/mod.rs
index 914a6a16348..7f36e4ca16d 100644
--- a/compiler/rustc_data_structures/src/graph/scc/mod.rs
+++ b/compiler/rustc_data_structures/src/graph/scc/mod.rs
@@ -40,7 +40,7 @@ pub struct SccData<S: Idx> {
 }
 
 impl<N: Idx, S: Idx + Ord> Sccs<N, S> {
-    pub fn new(graph: &(impl DirectedGraph<Node = N> + Successors)) -> Self {
+    pub fn new(graph: &impl Successors<Node = N>) -> Self {
         SccsConstruction::construct(graph)
     }