Skip to content

Commit

Permalink
[Fixes #72] Fix formatting of build.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
michalfita committed Dec 23, 2023
1 parent 533b0eb commit dbfa277
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hal/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ fn main() -> Result<(), &'static str> {
.is_ok()
}

if !feat("__device-selected") || ["__e70", "__s70", "__v70", "__v71"].iter().all(|&f| !feat(f)) {
if !feat("__device-selected")
|| ["__e70", "__s70", "__v70", "__v71"]
.iter()
.all(|&f| !feat(f))
{
return Err(
"The HAL is built for a specific target device selected using a feature, but no such a feature was selected."
);
Expand Down

0 comments on commit dbfa277

Please sign in to comment.