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.
This commit is contained in:
gak 2023-10-22 10:21:47 +11:00
parent 08a6d6abb1
commit 0627ee2c16
No known key found for this signature in database

View file

@ -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<Output = Result<...>>
#![allow(async_fn_in_trait)]
use crate::auth::{AccessToken, RefreshToken}; use crate::auth::{AccessToken, RefreshToken};
use crate::error::TeslatteError; use crate::error::TeslatteError;