stm32-metapac-gen: Use serde_json to parse json files

This commit is contained in:
Grant Miller
2022-11-01 14:23:22 -05:00
parent 05968bf0f3
commit ea4d08b6cf
2 changed files with 3 additions and 1 deletions

View File

@ -223,7 +223,7 @@ impl Gen {
fn load_chip(&mut self, name: &str) -> Chip {
let chip_path = self.opts.data_dir.join("chips").join(&format!("{}.json", name));
let chip = fs::read(chip_path).expect(&format!("Could not load chip {}", name));
serde_yaml::from_slice(&chip).unwrap()
serde_json::from_slice(&chip).unwrap()
}
pub fn gen(&mut self) {