fix: 修复 DashMap 取值编译错误
hosted.rs 的 has_game_account_in 对 DashMap 使用了不存在的 .values(),导致 theseus 编译失败(E0599)。改为 .iter() 并通过 .value() 取账户值。
This commit is contained in:
1 parent
15b6575824
commit
b1f4431767
1 file changed
+2
-1
@@ -442,7 +442,8 @@ fn is_supported_game_account(
|
|||||||
|
|
||||||
async fn has_game_account_in(state: &State) -> crate::Result<bool> {
|
async fn has_game_account_in(state: &State) -> crate::Result<bool> {
|
||||||
let accounts = Credentials::get_all_without_refresh(&state.pool).await?;
|
let accounts = Credentials::get_all_without_refresh(&state.pool).await?;
|
||||||
Ok(accounts.values().any(|account| {
|
Ok(accounts.iter().any(|account| {
|
||||||
|
let account = account.value();
|
||||||
is_supported_game_account(
|
is_supported_game_account(
|
||||||
account.account_type,
|
account.account_type,
|
||||||
account
|
account
|
||||||
|
|||||||
Reference in new issue
Block a user