mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
Remove unnecessary variable
This commit is contained in:
parent
b8c151c9d2
commit
14b6cf6fd7
@ -990,8 +990,7 @@ impl<R: Idx, C: Idx> BitMatrix<R, C> {
|
||||
pub fn insert_all_into_row(&mut self, row: R) {
|
||||
assert!(row.index() < self.num_rows);
|
||||
let (start, end) = self.range(row);
|
||||
let words = &mut self.words[..];
|
||||
for word in words[start..end].iter_mut() {
|
||||
for word in self.words[start..end].iter_mut() {
|
||||
*word = !0;
|
||||
}
|
||||
self.clear_excess_bits(row);
|
||||
|
Loading…
Reference in New Issue
Block a user