summaryrefslogtreecommitdiff
path: root/stm32-metapac
diff options
context:
space:
mode:
authorDario Nieuwenhuis <dirbaio@dirbaio.net>2022-06-12 22:15:44 +0200
committerDario Nieuwenhuis <dirbaio@dirbaio.net>2022-06-12 22:22:31 +0200
commita8703b75988e1e700af701116464025679d2feb8 (patch)
treef4ec5de70ec05e793a774049e010935ac45853ed /stm32-metapac
parent6199bdea710cde33e5d5381b6d6abfc8af46df19 (diff)
downloadembassy-a8703b75988e1e700af701116464025679d2feb8.zip
Run rustfmt.
Diffstat (limited to 'stm32-metapac')
-rw-r--r--stm32-metapac/build.rs1
-rw-r--r--stm32-metapac/build_pregenerated.rs5
2 files changed, 2 insertions, 4 deletions
diff --git a/stm32-metapac/build.rs b/stm32-metapac/build.rs
index 2b3fca80..0c183fa2 100644
--- a/stm32-metapac/build.rs
+++ b/stm32-metapac/build.rs
@@ -1,5 +1,6 @@
use std::env;
use std::path::PathBuf;
+
use stm32_metapac_gen::*;
fn parse_chip_core(chip_and_core: &str) -> (String, Option<String>) {
diff --git a/stm32-metapac/build_pregenerated.rs b/stm32-metapac/build_pregenerated.rs
index 660a9553..0f035807 100644
--- a/stm32-metapac/build_pregenerated.rs
+++ b/stm32-metapac/build_pregenerated.rs
@@ -25,10 +25,7 @@ fn main() {
crate_dir.display(),
chip_core_name
);
- println!(
- "cargo:rustc-env=STM32_METAPAC_PAC_PATH=chips/{}/pac.rs",
- chip_core_name
- );
+ println!("cargo:rustc-env=STM32_METAPAC_PAC_PATH=chips/{}/pac.rs", chip_core_name);
println!(
"cargo:rustc-env=STM32_METAPAC_METADATA_PATH=chips/{}/metadata.rs",
chip_core_name