mirror of
https://github.com/openharmony/third_party_rust_tinyvec.git
synced 2026-07-19 22:33:42 -04:00
* Closes https://github.com/Lokathor/tinyvec/issues/75 * This is a breaking change to the macro * benchmarks fixes. * slim down to just `take`
This commit is contained in:
+1
-2
@@ -1,5 +1,4 @@
|
||||
#![cfg(feature = "alloc")]
|
||||
|
||||
#![allow(bad_style)]
|
||||
#![allow(clippy::redundant_clone)]
|
||||
|
||||
@@ -98,5 +97,5 @@ fn TinyVec_from_array() {
|
||||
fn TinyVec_macro_non_copy() {
|
||||
// must use a variable here to avoid macro shenanigans
|
||||
let s = String::new();
|
||||
let _: TinyVec<[String; 10]> = tiny_vec!([String; 10], s);
|
||||
let _: TinyVec<[String; 10]> = tiny_vec!([String; 10] => s);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user