From 6d492dd6d9fe3312be29b05aa3821aece85a9789 Mon Sep 17 00:00:00 2001 From: Rasmus Melchior Jacobsen Date: Sat, 21 Oct 2023 14:45:15 +0200 Subject: [PATCH 1/2] Allow compilation on earlier rust versions --- src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 4571052..ded0519 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,7 @@ #![cfg_attr(not(test), no_std)] -#![allow(async_fn_in_trait)] +#![allow(unknown_lints, async_fn_in_trait)] +#![allow(stable_features)] +#![feature(async_fn_in_trait)] #![doc = include_str!("../README.md")] use core::{num::ParseIntError, str::Utf8Error}; From 0b2e66bcce76e495557aef399b2482fda9e26213 Mon Sep 17 00:00:00 2001 From: Rasmus Melchior Jacobsen Date: Sat, 21 Oct 2023 14:58:17 +0200 Subject: [PATCH 2/2] Re-add impl_trait_projections --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index ded0519..cf47a6d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,6 +2,7 @@ #![allow(unknown_lints, async_fn_in_trait)] #![allow(stable_features)] #![feature(async_fn_in_trait)] +#![feature(impl_trait_projections)] #![doc = include_str!("../README.md")] use core::{num::ParseIntError, str::Utf8Error};