From e3f8f83658b9c081307ca8235500886f389d47aa Mon Sep 17 00:00:00 2001 From: guttatus Date: Sat, 14 Dec 2024 17:50:29 +0800 Subject: [PATCH 1/2] bump: downgrade cargo edition to 2021 --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 824e767..2c9cb59 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,9 +3,9 @@ members = [ "xuantie-riscv", "xuantie-riscv-rt", ] -resolver = "3" +resolver = "2" [workspace.package] -edition = "2024" +edition = "2021" license = "MulanPSL-2.0" repository = "https://github.com/rustsbi/xuantie" From a5e100c9990f07c0b4dd5eb59a2a80ce1ea79e7a Mon Sep 17 00:00:00 2001 From: guttatus Date: Sat, 14 Dec 2024 20:10:03 +0800 Subject: [PATCH 2/2] fix: add `#[rustfmt::skip]` on the `registers` module --- xuantie-riscv/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xuantie-riscv/src/lib.rs b/xuantie-riscv/src/lib.rs index 21ace63..0add75d 100644 --- a/xuantie-riscv/src/lib.rs +++ b/xuantie-riscv/src/lib.rs @@ -70,4 +70,6 @@ pub mod asm; pub mod debug; pub mod paging; pub mod peripheral; + +#[rustfmt::skip] pub mod register;