aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Tjäder <henrik@grepit.se>2021-12-25 13:10:10 +0100
committerHenrik Tjäder <henrik@grepit.se>2021-12-25 13:10:10 +0100
commit93ceb6bdef9f15256ff89a1d9a333dbd04604dfb (patch)
treea265794b62d5cf1ae08d047c27dc20ded2b7ab67
parentc78177c37e3192c7a41a3ea8e7c139751c1a8989 (diff)
Edition: Bump to 2021
-rw-r--r--Cargo.toml2
-rw-r--r--src/lib.rs1
2 files changed, 2 insertions, 1 deletions
diff --git a/Cargo.toml b/Cargo.toml
index ed6efba..f67af6f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -7,7 +7,7 @@ authors = [
categories = ["concurrency", "embedded", "no-std"]
description = "Real-Time Interrupt-driven Concurrency (RTIC): a concurrency framework for building real-time systems"
documentation = "https://rtic.rs/"
-edition = "2018"
+edition = "2021"
keywords = ["arm", "cortex-m"]
license = "MIT OR Apache-2.0"
name = "cortex-m-rtic"
diff --git a/src/lib.rs b/src/lib.rs
index 5fe35a9..500993e 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -30,6 +30,7 @@
//! [SemVer]: https://semver.org/spec/v2.0.0.html
#![deny(missing_docs)]
+#![deny(rust_2021_compatibility)]
#![deny(rust_2018_compatibility)]
#![deny(rust_2018_idioms)]
#![no_std]