File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -227,10 +227,10 @@ impl<T> Iterator for RawValIter<T> {
227
227
unsafe {
228
228
let result = ptr :: read (self . start);
229
229
self . start = if mem :: size_of :: <T >() == 0 {
230
- (self . start as usize + 1 ) as * const _
231
- } else {
232
- self . start. offset (1 )
233
- };
230
+ (self . start as usize + 1 ) as * const _
231
+ } else {
232
+ self . start. offset (1 )
233
+ };
234
234
Some (result )
235
235
}
236
236
}
@@ -251,10 +251,10 @@ impl<T> DoubleEndedIterator for RawValIter<T> {
251
251
} else {
252
252
unsafe {
253
253
self . end = if mem :: size_of :: <T >() == 0 {
254
- (self . end as usize - 1 ) as * const _
255
- } else {
256
- self . end. offset (- 1 )
257
- };
254
+ (self . end as usize - 1 ) as * const _
255
+ } else {
256
+ self . end. offset (- 1 )
257
+ };
258
258
Some (ptr :: read (self . end))
259
259
}
260
260
}
You can’t perform that action at this time.
0 commit comments