Skip to content

Commit 36b1315

Browse files
committed
fix(clippy): replace match with if let for single pattern
Fixes clippy::single_match warning in profile_linter.rs by using if let instead of match for single pattern destructuring. https://claude.ai/code/session_01U8AKLUWvrAE2w6Ey63qDGQ
1 parent 16b6aa5 commit 36b1315

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

crates/flight-profile/src/profile_linter.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -583,11 +583,8 @@ fn set_path(root: &mut Value, path: &str, value: Value) {
583583
}
584584
current = &mut arr[i];
585585
} else if is_last {
586-
match current {
587-
Value::Object(map) => {
588-
map.insert((*part).to_string(), value);
589-
}
590-
_ => {}
586+
if let Value::Object(map) = current {
587+
map.insert((*part).to_string(), value);
591588
}
592589
return;
593590
} else {

0 commit comments

Comments
 (0)