Skip to content

Commit

Permalink
feat: fix merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
JakkuSakura committed Apr 5, 2024
1 parent 5e88947 commit 448b7bd
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/arrayvec.rs
Expand Up @@ -881,7 +881,8 @@ pub struct IntoIter<T, const CAP: usize, LenType: LenUint = DefaultLenType<CAP>>
index: usize,
v: ArrayVec<T, CAP, LenType>,
}
impl<T, const CAP: usize> IntoIter<T, CAP> {

impl<T, const CAP: usize, LenType: LenUint> IntoIter<T, CAP, LenType> {
/// Returns the remaining items of this iterator as a slice.
pub fn as_slice(&self) -> &[T] {
&self.v[self.index..]
Expand Down Expand Up @@ -1317,8 +1318,8 @@ impl<'de, T: Deserialize<'de>, const CAP: usize, LenType: LenUint> Deserialize<'
#[cfg(feature = "borsh")]
/// Requires crate feature `"borsh"`
impl<T, const CAP: usize> borsh::BorshSerialize for ArrayVec<T, CAP>
where
T: borsh::BorshSerialize,
where
T: borsh::BorshSerialize,
{
fn serialize<W: borsh::io::Write>(&self, writer: &mut W) -> borsh::io::Result<()> {
<[T] as borsh::BorshSerialize>::serialize(self.as_slice(), writer)
Expand All @@ -1328,8 +1329,8 @@ where
#[cfg(feature = "borsh")]
/// Requires crate feature `"borsh"`
impl<T, const CAP: usize> borsh::BorshDeserialize for ArrayVec<T, CAP>
where
T: borsh::BorshDeserialize,
where
T: borsh::BorshDeserialize,
{
fn deserialize_reader<R: borsh::io::Read>(reader: &mut R) -> borsh::io::Result<Self> {
let mut values = Self::new();
Expand Down

0 comments on commit 448b7bd

Please sign in to comment.