restore a little more 1.36 stuff

This commit is contained in:
Lokathor
2020-01-06 20:46:26 -07:00
parent 91d77aeba6
commit 73afa8f6a5
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -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