DOC: Remove warning on ArrayVec's into_inner method
This commit is contained in:
@@ -614,9 +614,6 @@ impl<A: Array> ArrayVec<A> {
|
|||||||
///
|
///
|
||||||
/// Return an `Ok` value with the array if length equals capacity,
|
/// Return an `Ok` value with the array if length equals capacity,
|
||||||
/// return an `Err` with self otherwise.
|
/// return an `Err` with self otherwise.
|
||||||
///
|
|
||||||
/// `Note:` This function may incur unproportionally large overhead
|
|
||||||
/// to move the array out, its performance is not optimal.
|
|
||||||
pub fn into_inner(self) -> Result<A, Self> {
|
pub fn into_inner(self) -> Result<A, Self> {
|
||||||
if self.len() < self.capacity() {
|
if self.len() < self.capacity() {
|
||||||
Err(self)
|
Err(self)
|
||||||
|
|||||||
Reference in New Issue
Block a user