From d75714ae6f1d4e6733d1b65296242b78f56cfcc4 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Sun, 21 Aug 2022 23:51:39 +0200 Subject: [PATCH] Update to edition 2021. This shouldn't be a breaking change since Edition 2021 came out in Rust 1.56, and MSRV is already higher than that (Rust 1.59) --- Cargo.toml | 1 + src/interrupt.rs | 2 +- src/lib.rs | 4 ---- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 25a14779..97888342 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,7 @@ [package] name = "riscv" version = "0.8.0" +edition = "2021" rust-version = "1.59" repository = "https://github.com/rust-embedded/riscv" authors = ["The RISC-V Team "] diff --git a/src/interrupt.rs b/src/interrupt.rs index d43fd987..14fc5d96 100644 --- a/src/interrupt.rs +++ b/src/interrupt.rs @@ -1,8 +1,8 @@ //! Interrupts // NOTE: Adapted from cortex-m/src/interrupt.rs +use crate::register::mstatus; pub use bare_metal::{CriticalSection, Mutex}; -use register::mstatus; /// Disables all interrupts #[inline] diff --git a/src/lib.rs b/src/lib.rs index 5590cd03..f3e58f3c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -15,10 +15,6 @@ #![no_std] -extern crate bare_metal; -extern crate bit_field; -extern crate embedded_hal; - pub mod asm; pub mod delay; pub mod interrupt;