slight adjustments, remove some explicit annotations

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry authored and June committed 2024-04-05 22:15:16 -04:00
1 parent 9cc4f3e929
commit f0a0704a93
8 files changed
+14 -21

No files matched your search

+2 -2
View File
@@ -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)))
}