File tree 3 files changed +2
-197
lines changed
3 files changed +2
-197
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ mod util {
12
12
pub ( crate ) mod grid;
13
13
pub ( crate ) mod math;
14
14
pub ( crate ) mod quad_tree;
15
- pub ( crate ) mod rtree;
16
15
}
17
16
mod path;
18
17
#[ cfg( test) ]
Original file line number Diff line number Diff line change @@ -49,17 +49,14 @@ impl Grid {
49
49
}
50
50
}
51
51
52
- use std:: mem:: size_of;
53
-
54
52
pub struct BitVec {
55
53
data : Vec < u64 > ,
56
- capacity : usize ,
57
54
}
58
55
59
56
impl BitVec {
60
57
pub fn new ( capacity : usize ) -> Self {
61
58
let num_words = ( capacity + 63 ) / 64 ;
62
- BitVec { data : vec ! [ 0 ; num_words] , capacity }
59
+ BitVec { data : vec ! [ 0 ; num_words] }
63
60
}
64
61
65
62
pub fn set ( & mut self , index : usize ) {
@@ -91,7 +88,7 @@ impl<'a> Iterator for BitVecIterator<'a> {
91
88
type Item = usize ;
92
89
93
90
fn next ( & mut self ) -> Option < Self :: Item > {
94
- while self . word_index < self . bit_vec . data . len ( ) {
91
+ loop {
95
92
if self . current_word == 0 {
96
93
self . word_index += 1 ;
97
94
if self . word_index == self . bit_vec . data . len ( ) {
@@ -107,7 +104,6 @@ impl<'a> Iterator for BitVecIterator<'a> {
107
104
108
105
return Some ( result) ;
109
106
}
110
- None
111
107
}
112
108
}
113
109
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments