Skip to content

Commit

Permalink
fix!: Remove async_fn_in_trait feature. Ignore warning.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gak committed Oct 21, 2023
1 parent 08a6d6a commit 0627ee2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -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::error::TeslatteError;
Expand Down

0 comments on commit 0627ee2

Please sign in to comment.