Skip to content

Commit ff98b53

Browse files
fix(clippy): replace single-match with if let in profile_linter (#255)
Fixes clippy::single_match warning in profile_linter.rs:578.
1 parent 20bdd6a commit ff98b53

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
@@ -575,11 +575,8 @@ fn set_path(root: &mut Value, path: &str, value: Value) {
575575
}
576576
current = &mut arr[i];
577577
} else if is_last {
578-
match current {
579-
Value::Object(map) => {
580-
map.insert((*part).to_string(), value);
581-
}
582-
_ => {}
578+
if let Value::Object(map) = current {
579+
map.insert((*part).to_string(), value);
583580
}
584581
return;
585582
} else {

0 commit comments

Comments
 (0)