File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -158,15 +158,18 @@ fn stm32() {
158
158
fs:: write ( out_file, g. to_string ( ) ) . unwrap ( ) ;
159
159
}
160
160
161
+ #[ cfg( feature = "stm32-metapac" ) ]
161
162
enum GetOneError {
162
163
None ,
163
164
Multiple ,
164
165
}
165
166
167
+ #[ cfg( feature = "stm32-metapac" ) ]
166
168
trait IteratorExt : Iterator {
167
169
fn get_one ( self ) -> Result < Self :: Item , GetOneError > ;
168
170
}
169
171
172
+ #[ cfg( feature = "stm32-metapac" ) ]
170
173
impl < T : Iterator > IteratorExt for T {
171
174
fn get_one ( mut self ) -> Result < Self :: Item , GetOneError > {
172
175
match self . next ( ) {
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ mod app {
9
9
struct Local { }
10
10
11
11
#[ init]
12
- fn init ( cx : init:: Context ) -> ( Shared , Local ) {
12
+ fn init ( _cx : init:: Context ) -> ( Shared , Local ) {
13
13
( Shared { } , Local { } )
14
14
}
15
15
}
You can’t perform that action at this time.
0 commit comments