Fix clippy::manual_map lint violations (#36584)

#36577

Release Notes:

- N/A
This commit is contained in:
tidely
2025-08-20 15:17:28 +02:00
committed by GitHub
parent de12633591
commit bc79076ad3
18 changed files with 62 additions and 118 deletions
+1 -7
View File
@@ -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();