mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-18 08:11:24 +01:00
enable error_on_line_overflow and fix errors
These required some manual intervention.
This commit is contained in:
parent
0afc1d2f50
commit
5cb2551422
6 changed files with 75 additions and 60 deletions
|
|
@ -21,6 +21,8 @@ pub(crate) struct Service {
|
|||
pub(crate) db: &'static dyn Data,
|
||||
}
|
||||
|
||||
type RoomsLeft = (OwnedRoomId, Vec<Raw<AnySyncStateEvent>>);
|
||||
|
||||
impl Service {
|
||||
/// Update current membership data.
|
||||
#[tracing::instrument(skip(self, last_state))]
|
||||
|
|
@ -390,8 +392,7 @@ impl Service {
|
|||
pub(crate) fn rooms_left<'a>(
|
||||
&'a self,
|
||||
user_id: &UserId,
|
||||
) -> impl Iterator<Item = Result<(OwnedRoomId, Vec<Raw<AnySyncStateEvent>>)>> + 'a
|
||||
{
|
||||
) -> impl Iterator<Item = Result<RoomsLeft>> + 'a {
|
||||
self.db.rooms_left(user_id)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue