mirror of
https://github.com/openharmony/third_party_rust_tinyvec.git
synced 2026-07-21 01:35:22 -04:00
apply some fn attributes.
This commit is contained in:
@@ -942,6 +942,7 @@ impl<'p, A: Array, I: Iterator<Item = A::Item>> Iterator
|
||||
{
|
||||
type Item = A::Item;
|
||||
|
||||
#[inline]
|
||||
fn next(&mut self) -> Option<A::Item> {
|
||||
if self.removal_start < self.removal_end {
|
||||
match self.replacement.next() {
|
||||
@@ -994,6 +995,7 @@ where
|
||||
A: Array,
|
||||
I: Iterator<Item = A::Item> + DoubleEndedIterator,
|
||||
{
|
||||
#[inline]
|
||||
fn next_back(&mut self) -> Option<A::Item> {
|
||||
if self.removal_start < self.removal_end {
|
||||
match self.replacement.next_back() {
|
||||
|
||||
Reference in New Issue
Block a user