stm32-metapac-gen: fix broken build.rs

This commit is contained in:
Dario Nieuwenhuis 2021-11-22 02:38:01 +01:00
parent 0db4da10f8
commit 039621c56d

View file

@ -1,7 +1,7 @@
use std::env; use std::env;
fn main() { fn main() {
let _chip_name = env::vars_os() let chip_name = env::vars_os()
.map(|(a, _)| a.to_string_lossy().to_string()) .map(|(a, _)| a.to_string_lossy().to_string())
.find(|x| x.starts_with("CARGO_FEATURE_STM32")) .find(|x| x.starts_with("CARGO_FEATURE_STM32"))
.expect("No stm32xx Cargo feature enabled") .expect("No stm32xx Cargo feature enabled")