Skip to content

Commit 68d639c

Browse files
dbrgnTheZoq2
authored andcommitted
Fix compile error for missing model feature
The cargo argument is `--features`, not `--feature`.
1 parent 8f19128 commit 68d639c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,15 @@
114114

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

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

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

0 commit comments

Comments
 (0)