From ed0ef45a8716d0919edf4e7cbd337cdb5c9c5b4c Mon Sep 17 00:00:00 2001 From: Alexander Payne Date: Wed, 4 Mar 2020 14:38:42 -0700 Subject: [PATCH] Select the 2018 language edition The use of the `?` macro operator, for zero-or-one selection, is only available in the 2018 edition of the language. Without the `edition` key set in the manifest, Rust compiles the crate in the 2015 syntax version, and rejects the macros. --- Cargo.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 39a4793..889c305 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,8 @@ [package] name = "static_assertions" -version = "1.1.0" +version = "1.1.1" authors = ["Nikolai Vazquez"] +edition = "2018" license = "MIT OR Apache-2.0" readme = "README.md" homepage = "https://github.com/nvzqz/static-assertions-rs"