Fix braces
This commit is contained in:
parent
11fefeb61c
commit
5105fc1681
1 changed files with 2 additions and 4 deletions
|
|
@ -1108,8 +1108,7 @@ impl<A, B> ZipImpl<A, B> for Zip<A, B>
|
|||
}
|
||||
|
||||
#[inline]
|
||||
default fn nth(&mut self, n: usize) -> Option<Self::Item>
|
||||
{
|
||||
default fn nth(&mut self, n: usize) -> Option<Self::Item> {
|
||||
self.super_nth(n)
|
||||
}
|
||||
|
||||
|
|
@ -1194,8 +1193,7 @@ impl<A, B> ZipImpl<A, B> for Zip<A, B>
|
|||
}
|
||||
|
||||
#[inline]
|
||||
fn nth(&mut self, n: usize) -> Option<Self::Item>
|
||||
{
|
||||
fn nth(&mut self, n: usize) -> Option<Self::Item> {
|
||||
let delta = cmp::min(n, self.len - self.index);
|
||||
let end = self.index + delta;
|
||||
while self.index < end {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue