mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-20 09:11:24 +01:00
fix lints for upcoming 1.88.0 toolchain
This commit is contained in:
parent
fa6fb37a2c
commit
595f35b673
19 changed files with 41 additions and 42 deletions
|
|
@ -157,7 +157,7 @@ impl Service {
|
|||
if i % 100 == 0 {
|
||||
tokio::task::yield_now().await;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
debug!(
|
||||
chunk_cache_length = ?chunk_cache.len(),
|
||||
|
|
|
|||
|
|
@ -1126,10 +1126,7 @@ impl Service {
|
|||
services()
|
||||
.rooms
|
||||
.auth_chain
|
||||
.get_auth_chain(
|
||||
room_id,
|
||||
state.iter().map(|(_, id)| id.clone()).collect(),
|
||||
)
|
||||
.get_auth_chain(room_id, state.values().cloned().collect())
|
||||
.await?
|
||||
.collect(),
|
||||
);
|
||||
|
|
|
|||
|
|
@ -155,7 +155,7 @@ impl Service {
|
|||
.invalidate_cache(&pdu.room_id)
|
||||
.await;
|
||||
}
|
||||
_ => continue,
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -257,7 +257,7 @@ impl Service {
|
|||
)?;
|
||||
|
||||
return Ok(());
|
||||
};
|
||||
}
|
||||
|
||||
// Else we have two options.
|
||||
// 1. We add the current diff on top of the parent layer.
|
||||
|
|
@ -374,7 +374,7 @@ impl Service {
|
|||
2,
|
||||
states_parents,
|
||||
)?;
|
||||
};
|
||||
}
|
||||
|
||||
Ok((new_shortstatehash, statediffnew, statediffremoved))
|
||||
}
|
||||
|
|
|
|||
|
|
@ -442,7 +442,7 @@ impl Service {
|
|||
highlight = true;
|
||||
}
|
||||
_ => {}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
if notify {
|
||||
|
|
@ -497,7 +497,7 @@ impl Service {
|
|||
)? {
|
||||
self.redact_pdu(redact_id, pdu, shortroomid)?;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
TimelineEventType::SpaceChild => {
|
||||
if pdu.state_key.is_some() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue