Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
TimLuq committed Sep 26, 2021
1 parent 8973eab commit 8320871
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ macro_rules! smallvec {
});
}


/// Creates an inline [`SmallVec`] containing the arguments. This macro is enabled by the feature `const_new`.
///
/// `smallvec_inline!` allows `SmallVec`s to be defined with the same syntax as array expressions in `const` contexts.
Expand Down Expand Up @@ -2032,7 +2031,7 @@ impl<'a> Drop for SetLenOnDrop<'a> {
#[cfg(feature = "const_new")]
impl<T, const N: usize> SmallVec<[T; N]> {
/// Construct an empty vector.
///
///
/// This is a `const` version of [`SmallVec::new`] that is enabled by the feature `const_new`, with the limitation that it only works for arrays.
#[cfg_attr(docsrs, doc(cfg(feature = "const_new")))]
#[inline]
Expand All @@ -2044,7 +2043,7 @@ impl<T, const N: usize> SmallVec<[T; N]> {
}

/// The array passed as an argument is moved to be an inline version of `SmallVec`.
///
///
/// This is a `const` version of [`SmallVec::from_buf`] that is enabled by the feature `const_new`, with the limitation that it only works for arrays.
#[cfg_attr(docsrs, doc(cfg(feature = "const_new")))]
#[inline]
Expand Down

0 comments on commit 8320871

Please sign in to comment.