Skip to content

Commit 8b2465b

Browse files
committed
Fix nightly compiler CI failure
1 parent 7a2f605 commit 8b2465b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

rtic-monotonics/build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,15 +158,18 @@ fn stm32() {
158158
fs::write(out_file, g.to_string()).unwrap();
159159
}
160160

161+
#[cfg(feature = "stm32-metapac")]
161162
enum GetOneError {
162163
None,
163164
Multiple,
164165
}
165166

167+
#[cfg(feature = "stm32-metapac")]
166168
trait IteratorExt: Iterator {
167169
fn get_one(self) -> Result<Self::Item, GetOneError>;
168170
}
169171

172+
#[cfg(feature = "stm32-metapac")]
170173
impl<T: Iterator> IteratorExt for T {
171174
fn get_one(mut self) -> Result<Self::Item, GetOneError> {
172175
match self.next() {

rtic/ui/unknown-interrupt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ mod app {
99
struct Local {}
1010

1111
#[init]
12-
fn init(cx: init::Context) -> (Shared, Local) {
12+
fn init(_cx: init::Context) -> (Shared, Local) {
1313
(Shared {}, Local {})
1414
}
1515
}

0 commit comments

Comments
 (0)