core/protocol: make ModifyPrivileges response serializable
Build and test / check-license (push) Successful in 46s
Build and test / check (push) Successful in 2m25s
Build and test / build (push) Successful in 3m0s
Build and test / test (push) Successful in 3m34s
Build and test / docs (push) Successful in 5m55s

This commit is contained in:
2026-04-28 17:27:40 +09:00
parent 7a9b233611
commit 5aca2314c4
4 changed files with 33 additions and 14 deletions
@@ -488,4 +488,13 @@ pub async fn apply_privilege_diffs(
}
results
.into_iter()
.map(|((k1, k2), v)| (k1, (k2, v)))
.into_group_map()
.into_iter()
.map(|(k1, pairs)| {
let inner = pairs.into_iter().collect::<BTreeMap<_, _>>();
(k1, inner)
})
.collect()
}