diff --git a/vec-zsts.md b/vec-zsts.md index fb337a8..5f3b2a8 100644 --- a/vec-zsts.md +++ b/vec-zsts.md @@ -140,8 +140,8 @@ impl Iterator for RawValIter { self.start = if mem::size_of::() == 0 { (self.start as usize + 1) as *const _ } else { - self.start.offset(1); - } + self.start.offset(1) + }; Some(result) } } @@ -164,8 +164,8 @@ impl DoubleEndedIterator for RawValIter { self.end = if mem::size_of::() == 0 { (self.end as usize - 1) as *const _ } else { - self.end.offset(-1); - } + self.end.offset(-1) + }; Some(ptr::read(self.end)) } }