about summary refs log tree commit diff
diff options
context:
space:
mode:
authorayushmishra2005 <ayushmishra2005@gmail.com>2021-05-13 10:22:17 +0530
committerayushmishra2005 <ayushmishra2005@gmail.com>2021-05-13 10:22:17 +0530
commit0cee527869f96e0c51487303a6c9dcf6fabc0e14 (patch)
treedbc6c6343904587f0f8aeedbb29c27695c4a86c7
parent9daf546b77dbeab7754a80d7336cd8d00c6746e4 (diff)
downloadrust-0cee527869f96e0c51487303a6c9dcf6fabc0e14.tar.gz
rust-0cee527869f96e0c51487303a6c9dcf6fabc0e14.zip
Miner code formatting
-rw-r--r--compiler/rustc_mir/src/dataflow/move_paths/builder.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/rustc_mir/src/dataflow/move_paths/builder.rs b/compiler/rustc_mir/src/dataflow/move_paths/builder.rs
index 994b403abf3..449799f9178 100644
--- a/compiler/rustc_mir/src/dataflow/move_paths/builder.rs
+++ b/compiler/rustc_mir/src/dataflow/move_paths/builder.rs
@@ -137,10 +137,7 @@ impl<'b, 'a, 'tcx> Gatherer<'b, 'a, 'tcx> {
                         self.loc,
                         InteriorOfSliceOrArray {
                             ty: place_ty,
-                            is_index: match elem {
-                                ProjectionElem::Index(..) => true,
-                                _ => false,
-                            },
+                            is_index: matches!(elem, ProjectionElem::Index(..))
                         },
                     ));
                 }