Skip to content

Commit

Permalink
Fix conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmarkov committed Oct 16, 2023
1 parent 103ac01 commit 7206328
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
#![cfg_attr(not(feature = "std"), no_std)]
#![allow(stable_features)]
#![cfg_attr(target_arch = "xtensa", feature(asm_experimental_arch))]
#![cfg_attr(
feature = "nightly",
feature(doc_cfg),
feature(async_fn_in_trait),
feature(impl_trait_projections)
)]
#![allow(unknown_lints)]
#![allow(clippy::unused_unit)] // enumset
#![warn(clippy::large_futures)]
#![cfg_attr(feature = "nightly", feature(async_fn_in_trait))]
#![cfg_attr(feature = "nightly", allow(async_fn_in_trait))]
#![cfg_attr(feature = "nightly", feature(impl_trait_projections))]
#![cfg_attr(feature = "nightly", feature(doc_cfg))]
#![cfg_attr(target_arch = "xtensa", feature(asm_experimental_arch))]

#[cfg(all(not(feature = "riscv-ulp-hal"), not(feature = "esp-idf-sys")))]
compile_error!("Exactly one of the features `esp-idf-sys` or `riscv-ulp-hal` needs to be enabled");
Expand Down

0 comments on commit 7206328

Please sign in to comment.