diff options
| author | Ellen <supbscripter@gmail.com> | 2022-04-27 08:51:33 +0100 |
|---|---|---|
| committer | Ellen <supbscripter@gmail.com> | 2022-04-27 08:51:33 +0100 |
| commit | f697955c1eb72e3dac6b6aafa411e58cb8d18706 (patch) | |
| tree | 7c4144db47e778adc08e4bd86109d1b4070ce004 /compiler/rustc_index/src | |
| parent | de1026a67b0a3f5d6b61a1f77093af97d4799376 (diff) | |
| download | rust-f697955c1eb72e3dac6b6aafa411e58cb8d18706.tar.gz rust-f697955c1eb72e3dac6b6aafa411e58cb8d18706.zip | |
tut tut tut
Diffstat (limited to 'compiler/rustc_index/src')
| -rw-r--r-- | compiler/rustc_index/src/bit_set.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_index/src/bit_set.rs b/compiler/rustc_index/src/bit_set.rs index cdc05095e68..33a8d6c11ff 100644 --- a/compiler/rustc_index/src/bit_set.rs +++ b/compiler/rustc_index/src/bit_set.rs @@ -1714,7 +1714,7 @@ impl<R: Idx, C: Idx> SparseBitMatrix<R, C> { } pub fn row(&self, row: R) -> Option<&HybridBitSet<C>> { - if let Some(Some(row)) = self.rows.get(row) { Some(row) } else { None } + self.rows.get(row)?.as_ref() } /// Intersects `row` with `set`. `set` can be either `BitSet` or |
