diff --git a/src/state/get_user.rs b/src/state/get_user.rs index 9ec8405..30de797 100644 --- a/src/state/get_user.rs +++ b/src/state/get_user.rs @@ -1,5 +1,4 @@ use crate::prelude::*; -use futures::future::try_join; use itertools::Itertools; use rustc_hash::FxHashSet; use std::{fmt::Write, path::Path}; @@ -7,7 +6,7 @@ use teloxide::{ net::Download, types::{Document, FileMeta}, }; -use tokio::task::spawn_blocking; +use tokio::{task::spawn_blocking, try_join}; use trim_in_place::TrimInPlace; #[inline] @@ -173,7 +172,7 @@ pub async fn get_user( .map_err(Into::into) }; - let (data, existing_names) = try_join(download_file(&bot, file), existing_names).await?; + let (data, existing_names) = try_join!(download_file(&bot, file), existing_names)?; let user = match spawn_blocking(move || user_from_vec(data, existing_names)).await? { Ok(Ok(user)) => user,