From 0627ee2c1661436de8113602292ab65c55e5abd1 Mon Sep 17 00:00:00 2001 From: gak Date: Sun, 22 Oct 2023 10:21:47 +1100 Subject: [PATCH] fix!: Remove async_fn_in_trait feature. Ignore warning. This is because the latest nightly doesn't require the feature and it added a warning for public async traits and not sure how to properly handle it yet. --- src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 1399566..85e6ff9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,6 @@ -#![feature(async_fn_in_trait)] +// Ignores: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified +// TODO: Maybe use the suggestion of removing async and replacing it with Future> +#![allow(async_fn_in_trait)] use crate::auth::{AccessToken, RefreshToken}; use crate::error::TeslatteError;