Skip to content

Commit

Permalink
Remove some unnecessary inline attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewjasper committed Nov 2, 2019
1 parent 4229e2b commit 7d7dc00
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/libcore/iter/adapters/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ impl<A, B> Iterator for Chain<A, B> where
{
type Item = A::Item;

#[inline]
fn next(&mut self) -> Option<A::Item> {
match self.state {
ChainState::Both => match self.a.next() {
Expand Down Expand Up @@ -117,7 +116,6 @@ impl<A, B> Iterator for Chain<A, B> where
accum
}

#[inline]
fn nth(&mut self, mut n: usize) -> Option<A::Item> {
match self.state {
ChainState::Both | ChainState::Front => {
Expand Down Expand Up @@ -157,7 +155,6 @@ impl<A, B> Iterator for Chain<A, B> where
}
}

#[inline]
fn last(self) -> Option<A::Item> {
match self.state {
ChainState::Both => {
Expand Down Expand Up @@ -198,7 +195,6 @@ impl<A, B> DoubleEndedIterator for Chain<A, B> where
A: DoubleEndedIterator,
B: DoubleEndedIterator<Item=A::Item>,
{
#[inline]
fn next_back(&mut self) -> Option<A::Item> {
match self.state {
ChainState::Both => match self.b.next_back() {
Expand All @@ -213,7 +209,6 @@ impl<A, B> DoubleEndedIterator for Chain<A, B> where
}
}

#[inline]
fn nth_back(&mut self, mut n: usize) -> Option<A::Item> {
match self.state {
ChainState::Both | ChainState::Back => {
Expand Down

0 comments on commit 7d7dc00

Please sign in to comment.