mirror of
https://github.com/openharmony/third_party_rust_tinyvec.git
synced 2026-07-21 01:35:22 -04:00
more fn attributes.
This commit is contained in:
@@ -19,6 +19,8 @@ pub struct SliceVec<'s, T> {
|
||||
}
|
||||
|
||||
impl<'s, T> Default for SliceVec<'s, T> {
|
||||
#[inline(always)]
|
||||
#[must_use]
|
||||
fn default() -> Self {
|
||||
Self { data: &mut [], len: 0 }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user