Skip to content

Commit

Permalink
Fix braces
Browse files Browse the repository at this point in the history
  • Loading branch information
scottmcm committed Mar 1, 2018
1 parent 11fefeb commit 5105fc1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/libcore/iter/mod.rs
Expand Up @@ -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)
}

Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 5105fc1

Please sign in to comment.