Skip to content

Commit

Permalink
Refactored the modules for bare metals systems to
Browse files Browse the repository at this point in the history
suit the advices provided in rust-lang#375.
  • Loading branch information
gbip committed Oct 20, 2018
1 parent f8fcf78 commit b7102d8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,9 @@ cfg_if! {
} else if #[cfg(unix)] {
mod unix;
pub use unix::*;
} else if #[cfg(target_arch = "arm", target_os = "none")] {
pub mod arm;
pub use arm::*;
} else if #[cfg(target_os = "none")] {
pub mod none;
pub use none::*;
} else {
// Unknown target_family
}
Expand Down
File renamed without changes.
3 changes: 3 additions & 0 deletions src/none/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#[cfg(target_arch="arm")]
pub mod arm;
pub use arm::*;

0 comments on commit b7102d8

Please sign in to comment.