File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
5
5
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
- refs/heads/try2: 3395f9d6a10aa912ab88de2e8d5b4f7de407413a
8
+ refs/heads/try2: 7e446af759e86e77a5f4a8e9bc6d6c22072b25ae
9
9
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
10
10
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
11
11
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
Original file line number Diff line number Diff line change @@ -198,24 +198,24 @@ macro_rules! bound {
198
198
addr!( loop {
199
199
let children = unsafe { addr!( & $( $mut_) * ( * node) . children) } ;
200
200
let child_id = chunk( key, idx) ;
201
- match children[ child_id] {
201
+ let ( slice_idx , ret ) = match children[ child_id] {
202
202
Internal ( ref $( $mut_) * n) => {
203
203
node = addr!( & $( $mut_) * * * n as * $( $mut_) * TrieNode <T >) ;
204
+ ( child_id + 1 , false )
204
205
}
205
206
External ( stored, _) => {
206
- if stored < key || ( $upper && stored == key) {
207
- it . stack . push ( children . $slice_from ( child_id + 1 ) . $iter ( ) ) ;
207
+ ( if stored < key || ( $upper && stored == key) {
208
+ child_id + 1
208
209
} else {
209
- it. stack. push( children. $slice_from( child_id) . $iter( ) ) ;
210
- }
211
- return it;
210
+ child_id
211
+ } , true )
212
212
}
213
213
Nothing => {
214
- it. stack. push( children. $slice_from( child_id + 1 ) . $iter( ) ) ;
215
- return it
214
+ ( child_id + 1 , true )
216
215
}
217
- }
218
- it. stack. push( children. $slice_from( child_id + 1 ) . $iter( ) ) ;
216
+ } ;
217
+ it. stack. push( children. $slice_from( slice_idx) . $iter( ) ) ;
218
+ if ret { return it }
219
219
idx += 1 ;
220
220
} )
221
221
}
You can’t perform that action at this time.
0 commit comments