File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
7
7
8
8
## [ Unreleased]
9
9
10
+ - Allow single valued ` dimIndex `
10
11
- Added ` reg_iter ` , ` reg_iter_mut ` methods on ` Peripheral ` and ` Cluster `
11
12
- Added ` DerefMut ` for ` Cluster ` , ` Register ` and ` Field `
12
13
- Added ` display_name ` to ` RegisterInfo `
Original file line number Diff line number Diff line change @@ -115,10 +115,8 @@ impl Parse for DimIndex {
115
115
let end = unwrap ! ( unwrap!( parts. next( ) ) . parse:: <u32 >( ) ) + 1 ;
116
116
117
117
Ok ( ( start..end) . map ( |i| i. to_string ( ) ) . collect ( ) )
118
- } else if text. contains ( ',' ) {
119
- Ok ( text. split ( ',' ) . map ( |s| s. to_string ( ) ) . collect ( ) )
120
118
} else {
121
- unreachable ! ( )
119
+ Ok ( text . split ( ',' ) . map ( |s| s . to_string ( ) ) . collect ( ) )
122
120
}
123
121
}
124
122
}
You can’t perform that action at this time.
0 commit comments