mirror of
https://github.com/openharmony/third_party_rust_tinyvec.git
synced 2026-07-19 22:33:42 -04:00
take should really always be inlined
This commit is contained in:
@@ -88,6 +88,7 @@ mod tinyvec;
|
||||
pub use crate::tinyvec::*;
|
||||
|
||||
// TODO MSRV(1.40.0): Just call the normal `core::mem::take`
|
||||
#[inline(always)]
|
||||
fn take<T: Default>(from: &mut T) -> T {
|
||||
replace(from, T::default())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user