mirror of
https://github.com/openharmony/third_party_rust_tinyvec.git
synced 2026-07-18 20:34:34 -04:00
improve the note
This commit is contained in:
+1
-1
@@ -86,7 +86,7 @@ mod tinyvec;
|
||||
#[cfg(feature = "alloc")]
|
||||
pub use crate::tinyvec::*;
|
||||
|
||||
// Replace with mem::take as soon as MSRV allows it
|
||||
// TODO MSRV(1.40.0): Just call the normal `core::mem::take`
|
||||
fn take<T: Default>(from: &mut T) -> T {
|
||||
replace(from, T::default())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user