File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -86,9 +86,9 @@ pub async fn update_dashboard(
86
86
87
87
// Validate: either query params OR body, not both
88
88
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 ( ) ) ;
92
92
93
93
if has_query_params && has_body_update {
94
94
return Err ( DashboardError :: Metadata (
Original file line number Diff line number Diff line change @@ -354,7 +354,7 @@ impl Dashboards {
354
354
. filter ( |d| {
355
355
d. tags
356
356
. as_ref ( )
357
- . map_or ( false , |tags| tags. contains ( & tag. to_string ( ) ) )
357
+ . is_some_and ( |tags| tags. contains ( & tag. to_string ( ) ) )
358
358
} )
359
359
. cloned ( )
360
360
. collect ( )
You can’t perform that action at this time.
0 commit comments