fix and enable collapsible_if lint

Signed-off-by: June Strawberry <june@vern.cc>
This commit is contained in:
June Strawberry
2026-01-15 17:39:33 -05:00
parent fb102f0e0a
commit 04e66a03d3
54 changed files with 453 additions and 504 deletions

View File

@@ -247,10 +247,10 @@ pub fn store(&self, service: &Service, key: &ConnectionKey) {
#[tracing::instrument(level = "debug", skip(self))]
pub fn update_rooms_prologue(&mut self, retard_since: Option<u64>) {
self.rooms.values_mut().for_each(|room| {
if let Some(retard_since) = retard_since {
if room.roomsince > retard_since {
room.roomsince = retard_since;
}
if let Some(retard_since) = retard_since
&& room.roomsince > retard_since
{
room.roomsince = retard_since;
}
});
}