Skip to content

Commit b7102d8

Browse files
committed
Refactored the modules for bare metals systems to
suit the advices provided in rust-lang#375.
1 parent f8fcf78 commit b7102d8

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,9 +314,9 @@ cfg_if! {
314314
} else if #[cfg(unix)] {
315315
mod unix;
316316
pub use unix::*;
317-
} else if #[cfg(target_arch = "arm", target_os = "none")] {
318-
pub mod arm;
319-
pub use arm::*;
317+
} else if #[cfg(target_os = "none")] {
318+
pub mod none;
319+
pub use none::*;
320320
} else {
321321
// Unknown target_family
322322
}
File renamed without changes.

src/none/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#[cfg(target_arch="arm")]
2+
pub mod arm;
3+
pub use arm::*;

0 commit comments

Comments
 (0)