summary refs log tree commit diff
path: root/compiler/rustc_incremental/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-01-02 20:09:17 +0100
committerMatthias Krüger <matthias.krueger@famsik.de>2021-01-02 20:09:17 +0100
commit8a90626a4608907a7be01dd0c9f9d7cfeb63e2f9 (patch)
tree24487a0744e7067e455bbb997418c925ef7bf553 /compiler/rustc_incremental/src
parent90ccf4f5adfb2562fc95c996b97faac7775a34bb (diff)
downloadrust-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.rs6
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()