Skip to content

Commit 7d7dc00

Browse files
committed
Remove some unnecessary inline attributes
1 parent 4229e2b commit 7d7dc00

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/libcore/iter/adapters/chain.rs

-5
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ impl<A, B> Iterator for Chain<A, B> where
5454
{
5555
type Item = A::Item;
5656

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

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

160-
#[inline]
161158
fn last(self) -> Option<A::Item> {
162159
match self.state {
163160
ChainState::Both => {
@@ -198,7 +195,6 @@ impl<A, B> DoubleEndedIterator for Chain<A, B> where
198195
A: DoubleEndedIterator,
199196
B: DoubleEndedIterator<Item=A::Item>,
200197
{
201-
#[inline]
202198
fn next_back(&mut self) -> Option<A::Item> {
203199
match self.state {
204200
ChainState::Both => match self.b.next_back() {
@@ -213,7 +209,6 @@ impl<A, B> DoubleEndedIterator for Chain<A, B> where
213209
}
214210
}
215211

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

0 commit comments

Comments
 (0)