mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-16 21:05:35 +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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue