diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-01-02 20:09:17 +0100 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2021-01-02 20:09:17 +0100 |
| commit | 8a90626a4608907a7be01dd0c9f9d7cfeb63e2f9 (patch) | |
| tree | 24487a0744e7067e455bbb997418c925ef7bf553 /compiler/rustc_incremental/src | |
| parent | 90ccf4f5adfb2562fc95c996b97faac7775a34bb (diff) | |
| download | rust-8a90626a4608907a7be01dd0c9f9d7cfeb63e2f9.tar.gz rust-8a90626a4608907a7be01dd0c9f9d7cfeb63e2f9.zip | |
reduce borrowing and (de)referencing around match patterns (clippy::match_ref_pats)
Diffstat (limited to 'compiler/rustc_incremental/src')
| -rw-r--r-- | compiler/rustc_incremental/src/assert_dep_graph.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_incremental/src/assert_dep_graph.rs b/compiler/rustc_incremental/src/assert_dep_graph.rs index 9b4388c911f..f39a92b9a32 100644 --- a/compiler/rustc_incremental/src/assert_dep_graph.rs +++ b/compiler/rustc_incremental/src/assert_dep_graph.rs @@ -310,13 +310,13 @@ fn filter_nodes<'q>( sources: &Option<FxHashSet<&'q DepNode>>, targets: &Option<FxHashSet<&'q DepNode>>, ) -> FxHashSet<&'q DepNode> { - if let &Some(ref sources) = sources { - if let &Some(ref targets) = targets { + if let Some(sources) = sources { + if let Some(targets) = targets { walk_between(query, sources, targets) } else { walk_nodes(query, sources, OUTGOING) } - } else if let &Some(ref targets) = targets { + } else if let Some(targets) = targets { walk_nodes(query, targets, INCOMING) } else { query.nodes().into_iter().collect() |
