We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5307407 commit ebf7204Copy full SHA for ebf7204
svd-rs/src/dimelement.rs
@@ -170,6 +170,8 @@ impl DimElement {
170
pub fn indexes_as_range(&self) -> Option<RangeInclusive<u32>> {
171
let mut integers = Vec::with_capacity(self.dim as usize);
172
for idx in self.indexes() {
173
+ // XXX: indexes that begin with leading zero are not compatible with range (`0-x`) syntax in serialization
174
+ // see https://github.com/rust-embedded/svdtools/pull/178#issuecomment-1801433808
175
let val = idx.parse::<u32>().ok()?;
176
if val.to_string() != idx {
177
return None;
0 commit comments