mirror of
https://github.com/openharmony/third_party_rust_tinyvec.git
synced 2026-07-18 20:34:34 -04:00
improve ArrayVec::push panic message
Closes https://github.com/Lokathor/tinyvec/issues/24
This commit is contained in:
+1
-1
@@ -352,7 +352,7 @@ impl<A: Array> ArrayVec<A> {
|
||||
replace(&mut self.data.as_slice_mut()[self.len], val);
|
||||
self.len += 1;
|
||||
} else {
|
||||
panic!("ArrayVec: overflow!")
|
||||
panic!("ArrayVec::push> capacity overflow!")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user