Skip to content

Commit 3fef31e

Browse files
clippy suggestions
1 parent 2e72ace commit 3fef31e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/handlers/http/users/dashboards.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ pub async fn update_dashboard(
8686

8787
// Validate: either query params OR body, not both
8888
let has_query_params = !query_map.is_empty();
89-
let has_body_update = dashboard.as_ref().map_or(false, |d| {
90-
d.title != existing_dashboard.title || d.tiles.is_some()
91-
});
89+
let has_body_update = dashboard
90+
.as_ref()
91+
.is_some_and(|d| d.title != existing_dashboard.title || d.tiles.is_some());
9292

9393
if has_query_params && has_body_update {
9494
return Err(DashboardError::Metadata(

src/users/dashboards.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ impl Dashboards {
354354
.filter(|d| {
355355
d.tags
356356
.as_ref()
357-
.map_or(false, |tags| tags.contains(&tag.to_string()))
357+
.is_some_and(|tags| tags.contains(&tag.to_string()))
358358
})
359359
.cloned()
360360
.collect()

0 commit comments

Comments
 (0)