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> {
227227 unsafe {
228228 let result = ptr :: read (self . start);
229229 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+ };
234234 Some (result )
235235 }
236236 }
@@ -251,10 +251,10 @@ impl<T> DoubleEndedIterator for RawValIter<T> {
251251 } else {
252252 unsafe {
253253 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+ };
258258 Some (ptr :: read (self . end))
259259 }
260260 }
You can’t perform that action at this time.
0 commit comments