Skip to content

Commit

Permalink
Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
RemcoSmitsDev committed Sep 25, 2024
1 parent 7ab561e commit b0f92c1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/debugger_ui/src/debugger_panel_item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,7 @@ impl DebugPanelItem {
stack_frame: &StackFrame,
cx: &mut ViewContext<Self>,
) -> Option<ProjectPath> {
let Some(path) = stack_frame.source.as_ref().and_then(|s| s.path.as_ref()) else {
return None;
};
let path = stack_frame.source.as_ref().and_then(|s| s.path.as_ref())?;

self.workspace
.update(cx, |workspace, cx| {
Expand Down

0 comments on commit b0f92c1

Please sign in to comment.