Skip to content

Commit 54bfff3

Browse files
bors[bot]Dirbaio
andauthored
Merge #109
109: Update to edition 2021. r=Disasm a=Dirbaio 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) Co-authored-by: Dario Nieuwenhuis <[email protected]>
2 parents 98ae3aa + d75714a commit 54bfff3

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[package]
22
name = "riscv"
33
version = "0.8.0"
4+
edition = "2021"
45
rust-version = "1.59"
56
repository = "https://github.com/rust-embedded/riscv"
67
authors = ["The RISC-V Team <[email protected]>"]

src/interrupt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//! Interrupts
22
33
// NOTE: Adapted from cortex-m/src/interrupt.rs
4+
use crate::register::mstatus;
45
pub use bare_metal::{CriticalSection, Mutex};
5-
use register::mstatus;
66

77
/// Disables all interrupts
88
#[inline]

src/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@
1515
1616
#![no_std]
1717

18-
extern crate bare_metal;
19-
extern crate bit_field;
20-
extern crate embedded_hal;
21-
2218
pub mod asm;
2319
pub mod delay;
2420
pub mod interrupt;

0 commit comments

Comments
 (0)