Skip to content

Commit cb9d135

Browse files
clippy fix
1 parent 9a2d5f5 commit cb9d135

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/users/dashboards.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ impl Dashboards {
208208
self.0.write().await.retain(|d| {
209209
d.dashboard_id
210210
.as_ref()
211-
.map_or(true, |id| *id != dashboard_id)
211+
.is_some_and(|id| *id == dashboard_id)
212212
});
213213

214214
Ok(())
@@ -222,7 +222,7 @@ impl Dashboards {
222222
.find(|d| {
223223
d.dashboard_id
224224
.as_ref()
225-
.map_or(false, |id| *id == dashboard_id)
225+
.is_some_and(|id| *id == dashboard_id)
226226
})
227227
.cloned()
228228
}
@@ -239,7 +239,7 @@ impl Dashboards {
239239
.find(|d| {
240240
d.dashboard_id
241241
.as_ref()
242-
.map_or(false, |id| *id == dashboard_id)
242+
.is_some_and(|id| *id == dashboard_id)
243243
&& d.author == Some(user_id.to_string())
244244
})
245245
.cloned()

0 commit comments

Comments
 (0)