slight adjustments, remove some explicit annotations
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
9cc4f3e929
commit
f0a0704a93
8 changed files with 14 additions and 21 deletions
|
@ -243,7 +243,7 @@ impl Service {
|
|||
pub fn server_sees_user(&self, server: &ServerName, user_id: &UserId) -> Result<bool> {
|
||||
Ok(self
|
||||
.server_rooms(server)
|
||||
.filter_map(std::result::Result::ok)
|
||||
.filter_map(Result::ok)
|
||||
.any(|room_id: OwnedRoomId| self.is_joined(user_id, &room_id).unwrap_or(false)))
|
||||
}
|
||||
|
||||
|
@ -259,7 +259,7 @@ impl Service {
|
|||
|
||||
Ok(self
|
||||
.rooms_joined(a)
|
||||
.filter_map(std::result::Result::ok)
|
||||
.filter_map(Result::ok)
|
||||
.any(|room_id| self.is_joined(b, &room_id).unwrap_or(false)))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue