From 1169b119b2f8e152eb37b73211aba09e64b9bfd2 Mon Sep 17 00:00:00 2001 From: Lokathor Date: Tue, 19 Mar 2024 08:04:03 -0600 Subject: [PATCH] Resolves https://github.com/Lokathor/tinyvec/issues/191 --- src/tinyvec.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/tinyvec.rs b/src/tinyvec.rs index 5509f4b..54a9ee8 100644 --- a/src/tinyvec.rs +++ b/src/tinyvec.rs @@ -841,14 +841,6 @@ impl TinyVec { } /// Place an element onto the end of the vec. - /// ## Panics - /// * If the length of the vec would overflow the capacity. - /// ```rust - /// use tinyvec::*; - /// let mut tv = tiny_vec!([i32; 10] => 1, 2, 3); - /// tv.push(4); - /// assert_eq!(tv.as_slice(), &[1, 2, 3, 4]); - /// ``` #[inline] pub fn push(&mut self, val: A::Item) { // The code path for moving the inline contents to the heap produces a lot