Fix clippy::manual_map lint violations (#36584)
#36577 Release Notes: - N/A
This commit is contained in:
@@ -21065,13 +21065,7 @@ fn add_log_breakpoint_at_cursor(
|
||||
let (anchor, bp) = editor
|
||||
.breakpoints_at_cursors(window, cx)
|
||||
.first()
|
||||
.and_then(|(anchor, bp)| {
|
||||
if let Some(bp) = bp {
|
||||
Some((*anchor, bp.clone()))
|
||||
} else {
|
||||
None
|
||||
}
|
||||
})
|
||||
.and_then(|(anchor, bp)| bp.as_ref().map(|bp| (*anchor, bp.clone())))
|
||||
.unwrap_or_else(|| {
|
||||
let cursor_position: Point = editor.selections.newest(cx).head();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user