diff --git a/hpm-metapac-gen/src/lib.rs b/hpm-metapac-gen/src/lib.rs index 824c121..837a1f5 100644 --- a/hpm-metapac-gen/src/lib.rs +++ b/hpm-metapac-gen/src/lib.rs @@ -177,9 +177,7 @@ impl Gen { writeln!(&mut extra, "}}").unwrap(); writeln!(&mut extra, "pub mod pins {{").unwrap(); - let mut pins = core.pins.clone(); - pins.sort_by_key(|r| r.index); - for pin in &pins { + for pin in &core.pins { writeln!( &mut extra, " pub const {}: usize = {};",