mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
chore(sync/v3): Sacrifice a goat to clippy
This commit is contained in:
@@ -639,8 +639,7 @@ async fn fix_corrupt_msc4133_fields(services: &Services) -> Result {
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
const POPULATED_USERROOMID_LEFTSTATE_TABLE_MARKER: &'static str =
|
const POPULATED_USERROOMID_LEFTSTATE_TABLE_MARKER: &str = "populate_userroomid_leftstate_table";
|
||||||
"populate_userroomid_leftstate_table";
|
|
||||||
async fn populate_userroomid_leftstate_table(services: &Services) -> Result {
|
async fn populate_userroomid_leftstate_table(services: &Services) -> Result {
|
||||||
type KeyVal<'a> = (Key<'a>, Raw<Option<Pdu>>);
|
type KeyVal<'a> = (Key<'a>, Raw<Option<Pdu>>);
|
||||||
type Key<'a> = (&'a UserId, &'a RoomId);
|
type Key<'a> = (&'a UserId, &'a RoomId);
|
||||||
@@ -660,7 +659,7 @@ async fn populate_userroomid_leftstate_table(services: &Services) -> Result {
|
|||||||
),
|
),
|
||||||
((user_id, room_id), state): KeyVal<'_>|
|
((user_id, room_id), state): KeyVal<'_>|
|
||||||
-> Result<(usize, usize, HashMap<_, _>)> {
|
-> Result<(usize, usize, HashMap<_, _>)> {
|
||||||
if matches!(state.deserialize(), Err(_)) {
|
if state.deserialize().is_err() {
|
||||||
let latest_shortstatehash =
|
let latest_shortstatehash =
|
||||||
if let Some(shortstatehash) = shortstatehash_cache.get(room_id) {
|
if let Some(shortstatehash) = shortstatehash_cache.get(room_id) {
|
||||||
*shortstatehash
|
*shortstatehash
|
||||||
|
|||||||
Reference in New Issue
Block a user