From 73afa8f6a5c8958f15ca7ea95e0a6d8ea70091ef Mon Sep 17 00:00:00 2001 From: Lokathor Date: Mon, 6 Jan 2020 20:46:26 -0700 Subject: [PATCH] restore a little more 1.36 stuff --- Cargo.toml | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1d483a2..0a39e7d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 "] -#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"] diff --git a/src/lib.rs b/src/lib.rs index 53e675f..3ca3e0b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -23,7 +23,7 @@ enum Payload { /// A `TinyVec` is like a `Vec`, but it will store up to 8 elements /// "inline" on the stack before transitioning into being a normal `Vec`. #[derive(Debug, Clone)] -#[cfg_attr(feature = "rustc_28", repr(transparent))] +#[repr(transparent)] pub struct TinyVec(Payload); // TODO: impl a better Debug