mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-12-24 19:09:33 +01:00
Fix CI with async_fn_in_trait not being a feature
This commit is contained in:
parent
52aa56e265
commit
3c9a8f290d
5 changed files with 3 additions and 5 deletions
|
@ -193,7 +193,7 @@ pub(crate) fn app(app: &App) -> Result<Analysis, syn::Error> {
|
|||
|
||||
// Collect errors if any and return/halt
|
||||
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()));
|
||||
return Err(err);
|
||||
}
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
#![no_std]
|
||||
#![deny(missing_docs)]
|
||||
#![allow(incomplete_features)]
|
||||
#![feature(async_fn_in_trait)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
|
||||
pub use rtic_time::{Monotonic, TimeoutError, TimerQueue};
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
#![no_std]
|
||||
#![deny(missing_docs)]
|
||||
#![allow(incomplete_features)]
|
||||
#![feature(async_fn_in_trait)]
|
||||
|
||||
use core::future::{poll_fn, Future};
|
||||
use core::pin::Pin;
|
||||
|
|
|
@ -3,7 +3,7 @@ use cortex_m::register::basepri;
|
|||
pub use cortex_m::{
|
||||
asm::wfi,
|
||||
interrupt,
|
||||
peripheral::{scb::SystemHandler, DWT, NVIC, SCB, SYST},
|
||||
peripheral::{scb::SystemHandler, DWT, SCB, SYST},
|
||||
Peripherals,
|
||||
};
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ pub struct 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 {
|
||||
Self { triple, has_std }
|
||||
|
|
Loading…
Reference in a new issue