mirror of
https://github.com/openharmony/third_party_rust_tinyvec.git
synced 2026-07-19 14:23:33 -04:00
restore a little more 1.36 stuff
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@ name = "tinyvec"
|
||||
description = "Just, really the littlest Vec you could need. So smol."
|
||||
version = "0.0.1-alpha.0"
|
||||
authors = ["Lokathor <zefria@gmail.com>"]
|
||||
#edition = "2018" # until our min version is allowed to go up, 2015 it is.
|
||||
edition = "2018"
|
||||
license = "Zlib"
|
||||
keywords = ["vec", "no_std", "smol"]
|
||||
categories = ["data-structures", "no-std"]
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ enum Payload<T: Default> {
|
||||
/// A `TinyVec<T>` is like a `Vec<T>`, but it will store up to 8 elements
|
||||
/// "inline" on the stack before transitioning into being a normal `Vec<T>`.
|
||||
#[derive(Debug, Clone)]
|
||||
#[cfg_attr(feature = "rustc_28", repr(transparent))]
|
||||
#[repr(transparent)]
|
||||
pub struct TinyVec<T: Default>(Payload<T>);
|
||||
|
||||
// TODO: impl a better Debug
|
||||
|
||||
Reference in New Issue
Block a user