Credentials::get_all 返回 DashMap,直接 collect 会得到 Vec<(Uuid, Credentials)>,与 CrashContext.credentials 的 Vec<Credentials> 不符,导致编译失败。补上与 analyze_crash 一致的 .map(|credential| credential.1)。
This commit is contained in:
1 parent
ccb96a8cf1
commit
0195cbf5ac
1 file changed
+1
@@ -1297,6 +1297,7 @@ async fn collect_crash_context(
|
|||||||
let credentials = Credentials::get_all(&state.pool)
|
let credentials = Credentials::get_all(&state.pool)
|
||||||
.await?
|
.await?
|
||||||
.into_iter()
|
.into_iter()
|
||||||
|
.map(|credential| credential.1)
|
||||||
.collect::<Vec<_>>();
|
.collect::<Vec<_>>();
|
||||||
Ok(CrashContext {
|
Ok(CrashContext {
|
||||||
sources,
|
sources,
|
||||||
|
|||||||
Reference in new issue
Block a user