Skip to content

Commit

Permalink
Fix compile error for missing model feature
Browse files Browse the repository at this point in the history
The cargo argument is `--features`, not `--feature`.
  • Loading branch information
dbrgn authored and TheZoq2 committed Jan 17, 2020
1 parent 8f19128 commit 68d639c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,15 @@

// If no target specified, print error message.
#[cfg(not(any(feature = "stm32f100", feature = "stm32f101", feature = "stm32f103")))]
compile_error!("Target not found. A `--feature <target-name>` is required.");
compile_error!("Target not found. A `--features <target-name>` is required.");

// If any two or more targets are specified, print error message.
#[cfg(any(
all(feature = "stm32f100", feature = "stm32f101"),
all(feature = "stm32f100", feature = "stm32f103"),
all(feature = "stm32f101", feature = "stm32f103"),
))]
compile_error!("Multiple targets specified. Only a single `--feature <target-name>` can be specified.");
compile_error!("Multiple targets specified. Only a single `--features <target-name>` can be specified.");

#[cfg(feature = "device-selected")]
use embedded_hal as hal;
Expand Down

0 comments on commit 68d639c

Please sign in to comment.