net: feature-gate nightly-only async traits to allow building on stable.

This commit is contained in:
Dario Nieuwenhuis
2022-08-30 19:25:36 +02:00
parent 92ed95780d
commit 464ae67108
16 changed files with 99 additions and 66 deletions

View File

@ -1,6 +1,5 @@
#![cfg_attr(not(feature = "std"), no_std)]
#![allow(clippy::new_without_default)]
#![feature(generic_associated_types, type_alias_impl_trait)]
#![cfg_attr(feature = "nightly", feature(generic_associated_types, type_alias_impl_trait))]
// This mod MUST go first, so that the others see its macros.
pub(crate) mod fmt;