Fix CI with async_fn_in_trait not being a feature

This commit is contained in:
Emil Fresk 2023-11-01 20:41:28 +01:00
parent 52aa56e265
commit 3c9a8f290d
5 changed files with 3 additions and 5 deletions

View file

@ -193,7 +193,7 @@ pub(crate) fn app(app: &App) -> Result<Analysis, syn::Error> {
// Collect errors if any and return/halt // Collect errors if any and return/halt
if !error.is_empty() { if !error.is_empty() {
let mut err = error.get(0).unwrap().clone(); let mut err = error.first().unwrap().clone();
error.iter().for_each(|e| err.combine(e.clone())); error.iter().for_each(|e| err.combine(e.clone()));
return Err(err); return Err(err);
} }

View file

@ -23,7 +23,6 @@
#![no_std] #![no_std]
#![deny(missing_docs)] #![deny(missing_docs)]
#![allow(incomplete_features)] #![allow(incomplete_features)]
#![feature(async_fn_in_trait)]
#![cfg_attr(docsrs, feature(doc_cfg))] #![cfg_attr(docsrs, feature(doc_cfg))]
pub use rtic_time::{Monotonic, TimeoutError, TimerQueue}; pub use rtic_time::{Monotonic, TimeoutError, TimerQueue};

View file

@ -6,7 +6,6 @@
#![no_std] #![no_std]
#![deny(missing_docs)] #![deny(missing_docs)]
#![allow(incomplete_features)] #![allow(incomplete_features)]
#![feature(async_fn_in_trait)]
use core::future::{poll_fn, Future}; use core::future::{poll_fn, Future};
use core::pin::Pin; use core::pin::Pin;

View file

@ -3,7 +3,7 @@ use cortex_m::register::basepri;
pub use cortex_m::{ pub use cortex_m::{
asm::wfi, asm::wfi,
interrupt, interrupt,
peripheral::{scb::SystemHandler, DWT, NVIC, SCB, SYST}, peripheral::{scb::SystemHandler, DWT, SCB, SYST},
Peripherals, Peripherals,
}; };

View file

@ -23,7 +23,7 @@ pub struct Target<'a> {
} }
impl<'a> Target<'a> { impl<'a> Target<'a> {
const DEFAULT_FEATURES: &str = "test-critical-section"; const DEFAULT_FEATURES: &'static str = "test-critical-section";
pub const fn new(triple: &'a str, has_std: bool) -> Self { pub const fn new(triple: &'a str, has_std: bool) -> Self {
Self { triple, has_std } Self { triple, has_std }