mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-23 20:22:51 +01:00
Fix nightly compiler CI failure
This commit is contained in:
parent
7a2f605b52
commit
8b2465ba37
2 changed files with 4 additions and 1 deletions
|
@ -158,15 +158,18 @@ fn stm32() {
|
|||
fs::write(out_file, g.to_string()).unwrap();
|
||||
}
|
||||
|
||||
#[cfg(feature = "stm32-metapac")]
|
||||
enum GetOneError {
|
||||
None,
|
||||
Multiple,
|
||||
}
|
||||
|
||||
#[cfg(feature = "stm32-metapac")]
|
||||
trait IteratorExt: Iterator {
|
||||
fn get_one(self) -> Result<Self::Item, GetOneError>;
|
||||
}
|
||||
|
||||
#[cfg(feature = "stm32-metapac")]
|
||||
impl<T: Iterator> IteratorExt for T {
|
||||
fn get_one(mut self) -> Result<Self::Item, GetOneError> {
|
||||
match self.next() {
|
||||
|
|
|
@ -9,7 +9,7 @@ mod app {
|
|||
struct Local {}
|
||||
|
||||
#[init]
|
||||
fn init(cx: init::Context) -> (Shared, Local) {
|
||||
fn init(_cx: init::Context) -> (Shared, Local) {
|
||||
(Shared {}, Local {})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue