aboutsummaryrefslogtreecommitdiffstats
path: root/src/actions.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions.rs')
-rw-r--r--src/actions.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/actions.rs b/src/actions.rs
index f77378e..bda8670 100644
--- a/src/actions.rs
+++ b/src/actions.rs
@@ -275,10 +275,12 @@ async fn with_exchange_refresh_token_async<F, T>(
) -> Result<(Option<String>, T)>
where
F: Fn(
- &str,
- ) -> std::pin::Pin<
- Box<dyn std::future::Future<Output = Result<T>> + Send>,
- >,
+ &str,
+ ) -> std::pin::Pin<
+ Box<dyn std::future::Future<Output = Result<T>> + Send>,
+ > + Send
+ + Sync,
+ T: Send,
{
match f(access_token).await {
Ok(t) => Ok((None, t)),