mirror of
https://github.com/openharmony/third_party_rust_tinyvec.git
synced 2026-07-21 01:35:22 -04:00
clippy
This commit is contained in:
@@ -885,6 +885,8 @@ pub struct ArrayVecIterator<A: Array> {
|
||||
|
||||
impl<A: Array> ArrayVecIterator<A> {
|
||||
/// Returns the remaining items of this iterator as a slice.
|
||||
#[inline]
|
||||
#[must_use]
|
||||
pub fn as_slice(&self) -> &[A::Item] {
|
||||
&self.data.as_slice()[self.base..self.len]
|
||||
}
|
||||
@@ -930,6 +932,7 @@ impl<A: Array> Iterator for ArrayVecIterator<A> {
|
||||
}
|
||||
|
||||
impl<A: Array> Debug for ArrayVecIterator<A> where A::Item: Debug {
|
||||
#[allow(clippy::missing_inline_in_public_items)]
|
||||
fn fmt(&self, f: &mut Formatter<'_>) -> core::fmt::Result {
|
||||
f.debug_tuple("ArrayVecIterator").field(&self.as_slice()).finish()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user