Skip to content

Commit 14b6cf6

Browse files
committed
Remove unnecessary variable
1 parent b8c151c commit 14b6cf6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/rustc_index/src/bit_set.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -990,8 +990,7 @@ impl<R: Idx, C: Idx> BitMatrix<R, C> {
990990
pub fn insert_all_into_row(&mut self, row: R) {
991991
assert!(row.index() < self.num_rows);
992992
let (start, end) = self.range(row);
993-
let words = &mut self.words[..];
994-
for word in words[start..end].iter_mut() {
993+
for word in self.words[start..end].iter_mut() {
995994
*word = !0;
996995
}
997996
self.clear_excess_bits(row);

0 commit comments

Comments
 (0)