Skip to content

Commit

Permalink
arduino-hal: Apply rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahix committed Mar 12, 2024
1 parent 204c77d commit 45a37eb
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
11 changes: 9 additions & 2 deletions arduino-hal/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
#![cfg_attr(feature = "arduino-nano", doc = "**Arduino Nano**.")]
#![cfg_attr(feature = "arduino-uno", doc = "**Arduino Uno**.")]
#![cfg_attr(feature = "sparkfun-promicro", doc = "**SparkFun ProMicro**.")]
#![cfg_attr(feature = "sparkfun-promini-5v", doc = "**SparkFun ProMini 5V (16MHz)**.")]
#![cfg_attr(
feature = "sparkfun-promini-5v",
doc = "**SparkFun ProMini 5V (16MHz)**."
)]
#![cfg_attr(feature = "trinket-pro", doc = "**Trinket Pro**.")]
#![cfg_attr(feature = "trinket", doc = "**Trinket**.")]
#![cfg_attr(feature = "nano168", doc = "**Nano clone (ATmega168)**.")]
Expand Down Expand Up @@ -259,7 +262,11 @@ macro_rules! default_serial {
)
};
}
#[cfg(any(feature = "arduino-nano", feature = "nano168", feature = "sparkfun-promini-5v"))]
#[cfg(any(
feature = "arduino-nano",
feature = "nano168",
feature = "sparkfun-promini-5v"
))]
#[macro_export]
macro_rules! default_serial {
($p:expr, $pins:expr, $baud:expr) => {
Expand Down
14 changes: 12 additions & 2 deletions arduino-hal/src/port/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,19 @@ pub use leonardo::*;
mod mega;
#[cfg(any(feature = "arduino-mega2560", feature = "arduino-mega1280"))]
pub use mega::*;
#[cfg(any(feature = "arduino-nano", feature = "arduino-uno", feature = "nano168", feature = "sparkfun-promini-5v"))]
#[cfg(any(
feature = "arduino-nano",
feature = "arduino-uno",
feature = "nano168",
feature = "sparkfun-promini-5v"
))]
mod uno;
#[cfg(any(feature = "arduino-nano", feature = "arduino-uno", feature = "nano168", feature = "sparkfun-promini-5v"))]
#[cfg(any(
feature = "arduino-nano",
feature = "arduino-uno",
feature = "nano168",
feature = "sparkfun-promini-5v"
))]
pub use uno::*;
#[cfg(feature = "sparkfun-promicro")]
mod promicro;
Expand Down

0 comments on commit 45a37eb

Please sign in to comment.