Skip to content

Commit

Permalink
chore: cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Roest committed Oct 13, 2020
1 parent 0556eca commit 64f3f48
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
8 changes: 7 additions & 1 deletion src/with_alloc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,13 @@ impl<T: 'static> RingBuffer<T> for AllocRingBuffer<T> {
}
}

impl_ringbuffer!(get_unchecked, get_unchecked_mut, readptr, writeptr, crate::mask);
impl_ringbuffer!(
get_unchecked,
get_unchecked_mut,
readptr,
writeptr,
crate::mask
);
}

impl<T> AllocRingBuffer<T> {
Expand Down
8 changes: 7 additions & 1 deletion src/with_const_generics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,13 @@ impl<T: 'static, const CAP: usize> RingBuffer<T> for ConstGenericRingBuffer<T, C
}
}

impl_ringbuffer!(get_unchecked, get_unchecked_mut, readptr, writeptr, crate::mask);
impl_ringbuffer!(
get_unchecked,
get_unchecked_mut,
readptr,
writeptr,
crate::mask
);
}

impl<T, const CAP: usize> Default for ConstGenericRingBuffer<T, CAP> {
Expand Down
8 changes: 7 additions & 1 deletion src/with_generic_array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,13 @@ impl<T: 'static, Cap: ArrayLength<MaybeUninit<T>>> RingBuffer<T> for GenericRing
}
}

impl_ringbuffer!(get_unchecked, get_unchecked_mut, readptr, writeptr, crate::mask);
impl_ringbuffer!(
get_unchecked,
get_unchecked_mut,
readptr,
writeptr,
crate::mask
);
}

#[cfg(test)]
Expand Down

0 comments on commit 64f3f48

Please sign in to comment.